DEV: Fix Lint/BooleanSymbol (#24747)

This commit is contained in:
Jarek Radosz
2023-12-06 13:19:09 +01:00
committed by GitHub
parent 138bf486d3
commit 6a66dc1cfb
9 changed files with 13 additions and 7 deletions

View File

@ -20,7 +20,7 @@ RSpec.describe SpamRule::FlagSockpuppets do
before { SiteSetting.flag_sockpuppets = true }
it "flags posts when it should" do
rule.expects(:reply_is_from_sockpuppet?).returns(:true)
rule.expects(:reply_is_from_sockpuppet?).returns(true)
rule.expects(:flag_sockpuppet_users).once
expect(perform).to eq(true)
end