We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecbacb5 commit e579b77Copy full SHA for e579b77
spec/rspec/rails/matchers/send_email_spec.rb
@@ -35,7 +35,7 @@ def test_email
35
}.to send_email
36
end
37
38
- it "with with to_not" do
+ it "with to_not" do
39
expect {
40
mailer.test_email.deliver_now
41
}.to_not send_email(
@@ -119,7 +119,12 @@ def test_email
119
120
121
context "with a custom negated version defined" do
122
- before { RSpec::Matchers.define_negated_matcher :not_send_email, :send_email }
+ around do |example|
123
+ RSpec::Matchers.define_negated_matcher :not_send_email, :send_email
124
+ example.run
125
+ ensure
126
+ undef not_send_email
127
+ end
128
129
it "works with a negated version" do
130
0 commit comments