Use the "#" convention in user preferences methods tests

This is a convention we follow most of the time, particularly in the
last few years.
This commit is contained in:
Javi Martín
2025-10-08 16:18:06 +02:00
parent e7f2210380
commit a1714fea58

View File

@@ -92,19 +92,19 @@ describe User do
end end
describe "preferences" do describe "preferences" do
describe "email_on_comment" do describe "#email_on_comment" do
it "is false by default" do it "is false by default" do
expect(subject.email_on_comment).to be false expect(subject.email_on_comment).to be false
end end
end end
describe "email_on_comment_reply" do describe "#email_on_comment_reply" do
it "is false by default" do it "is false by default" do
expect(subject.email_on_comment_reply).to be false expect(subject.email_on_comment_reply).to be false
end end
end end
describe "subscription_to_website_newsletter" do describe "#newsletter" do
it "is true by default when the consent for notifications setting is disabled" do it "is true by default when the consent for notifications setting is disabled" do
Setting["feature.gdpr.require_consent_for_notifications"] = false Setting["feature.gdpr.require_consent_for_notifications"] = false
@@ -118,7 +118,7 @@ describe User do
end end
end end
describe "email_digest" do describe "#email_digest" do
it "is true by default when the consent for notifications setting is disabled" do it "is true by default when the consent for notifications setting is disabled" do
Setting["feature.gdpr.require_consent_for_notifications"] = false Setting["feature.gdpr.require_consent_for_notifications"] = false
@@ -132,7 +132,7 @@ describe User do
end end
end end
describe "email_on_direct_message" do describe "#email_on_direct_message" do
it "is true by default when the consent for notifications setting is disabled" do it "is true by default when the consent for notifications setting is disabled" do
Setting["feature.gdpr.require_consent_for_notifications"] = false Setting["feature.gdpr.require_consent_for_notifications"] = false
@@ -146,7 +146,7 @@ describe User do
end end
end end
describe "official_position_badge" do describe "#official_position_badge" do
it "is false by default" do it "is false by default" do
expect(subject.official_position_badge).to be false expect(subject.official_position_badge).to be false
end end