Skip to content

Commit

Permalink
Merge pull request #2455 from rspec/add-assert_nothing_raised-regress…
Browse files Browse the repository at this point in the history
…ion-test

Add a regression test for a removed method in 6.1
  • Loading branch information
JonRowe authored Feb 2, 2021
2 parents 3ddfb3a + 1cedd98 commit ba5bab2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/rspec/rails/matchers/active_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -702,4 +702,16 @@ def self.name; "LoggingJob"; end
}.to raise_error(/expected to perform exactly 1 jobs, but performed 0/)
end
end

describe 'Active Job test helpers' do
include ActiveJob::TestHelper

it 'does not raise that "assert_nothing_raised" is undefined' do
expect {
perform_enqueued_jobs do
:foo
end
}.to_not raise_error
end
end
end

0 comments on commit ba5bab2

Please sign in to comment.