Files
discourse/spec/services/problem_check/full_page_login_check_spec.rb
T
Penar Musaraj 6aaddcf381 FEATURE: enable full page login by default (#31771)
This switches the signup/login UI to the full page experience by
default. This has been in use by many sites for multiple months and we
have ironed out many fixes in the meantime.

The `full_page_login` setting is also marked for removal in about
1.5mths, by the end of April 2025.
2025-03-25 13:43:51 -04:00

20 lines
489 B
Ruby

# frozen_string_literal: true
RSpec.describe ProblemCheck::FullPageLoginCheck do
let(:check) { described_class.new }
describe "#call" do
context "when full_page_login is enabled" do
before { SiteSetting.full_page_login = true }
it { expect(check).to be_chill_about_it }
end
context "when full_page_login is enabled" do
before { SiteSetting.full_page_login = false }
it { expect(check).to have_a_problem.with_priority("low") }
end
end
end