Adjust mute rule test case to now expect an error
This commit is contained in:
parent
454438091b
commit
6efee0053e
|
@ -11,8 +11,8 @@ describe UseCase::MuteRule::Create do
|
||||||
context "phrase is empty" do
|
context "phrase is empty" do
|
||||||
let(:phrase) { "" }
|
let(:phrase) { "" }
|
||||||
|
|
||||||
it "does not create the rule" do
|
it "raises an error" do
|
||||||
expect { subject }.not_to(change { MuteRule.count })
|
expect { subject }.to raise_error(ActiveRecord::RecordInvalid)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue