Adjust mute rule test case to now expect an error

This commit is contained in:
Andreas Nedbal 2023-10-15 06:55:13 +02:00 committed by Andreas Nedbal
parent 454438091b
commit 6efee0053e
1 changed files with 2 additions and 2 deletions

View File

@ -11,8 +11,8 @@ describe UseCase::MuteRule::Create do
context "phrase is empty" do
let(:phrase) { "" }
it "does not create the rule" do
expect { subject }.not_to(change { MuteRule.count })
it "raises an error" do
expect { subject }.to raise_error(ActiveRecord::RecordInvalid)
end
end