From a1714fea589b3b19a657ef2f26e5ae3a5a835a37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Wed, 8 Oct 2025 16:18:06 +0200 Subject: [PATCH] Use the "#" convention in user preferences methods tests This is a convention we follow most of the time, particularly in the last few years. --- spec/models/user_spec.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 4a9a9139b..3d95d6fc3 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -92,19 +92,19 @@ describe User do end describe "preferences" do - describe "email_on_comment" do + describe "#email_on_comment" do it "is false by default" do expect(subject.email_on_comment).to be false end end - describe "email_on_comment_reply" do + describe "#email_on_comment_reply" do it "is false by default" do expect(subject.email_on_comment_reply).to be false 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 Setting["feature.gdpr.require_consent_for_notifications"] = false @@ -118,7 +118,7 @@ describe User do end end - describe "email_digest" do + describe "#email_digest" do it "is true by default when the consent for notifications setting is disabled" do Setting["feature.gdpr.require_consent_for_notifications"] = false @@ -132,7 +132,7 @@ describe User do 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 Setting["feature.gdpr.require_consent_for_notifications"] = false @@ -146,7 +146,7 @@ describe User do end end - describe "official_position_badge" do + describe "#official_position_badge" do it "is false by default" do expect(subject.official_position_badge).to be false end