Skip to content

Commit

Permalink
updated :safe_reports initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
forceofcalm committed Jan 10, 2025
1 parent cac6531 commit fb60f14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/models/abuse_report_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@
context "when report is spam" do
let(:legit_user) { create(:user) }
let(:spam_report) { build(:abuse_report, username: 'viagra-test-123') }
let(:safe_report) { build(:abuse_report, username: 'viagra-test-123', email: legit_user.email) }
let!(:safe_report) { build(:abuse_report, username: 'viagra-test-123', email: legit_user.email) }

Check warning on line 332 in spec/models/abuse_report_spec.rb

View workflow job for this annotation

GitHub Actions / Rubocop

[rubocop] reported by reviewdog 🐶 Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping. Raw Output: spec/models/abuse_report_spec.rb:332:57: C: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

before do
allow(Akismetor).to receive(:spam?).and_return(true)
Expand Down

0 comments on commit fb60f14

Please sign in to comment.