mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-02 04:42:19 +08:00
Internal ref - t/169410 Dependent on https://github.com/discourse-org/discourse-login/pull/98
15 lines
519 B
Ruby
15 lines
519 B
Ruby
# frozen_string_literal: true
|
|
|
|
RSpec.describe DiscourseId do
|
|
describe ".provider_url" do
|
|
it "returns the default URL when setting is blank" do
|
|
SiteSetting.discourse_id_provider_url = ""
|
|
expect(described_class.provider_url).to eq("https://id.discourse.com")
|
|
end
|
|
|
|
it "returns the configured URL when setting is present" do
|
|
SiteSetting.discourse_id_provider_url = "https://custom.example.com"
|
|
expect(described_class.provider_url).to eq("https://custom.example.com")
|
|
end
|
|
end
|
|
end
|