We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 891fb85 commit 202fdb3Copy full SHA for 202fdb3
spec/models/subscription_spec.rb
@@ -168,10 +168,10 @@
168
it "doesn't send an email if the subscription can't be created" do
169
blank_email = ""
170
expect do
171
- expect do
172
- Subscription.create_and_request_confirmation(email: blank_email)
173
- end.to raise_error ActiveRecord::RecordInvalid
174
- end.not_to change { ActionMailer::Base.deliveries.size }
+ Subscription.create_and_request_confirmation(email: blank_email)
+ end.to raise_error
+
+ expect(ActionMailer::Base.deliveries).to be_empty
175
end
176
177
it "raises an error if the emailing fails" do
0 commit comments