mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-25 06:57:48 +01:00
Adjust mute rule test case to now expect an error
This commit is contained in:
parent
454438091b
commit
6efee0053e
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue