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 4a1d800 commit 7ecda54Copy full SHA for 7ecda54
spec/rspec/rails/matchers/active_job_spec.rb
@@ -94,6 +94,14 @@ def self.name; "LoggingJob"; end
94
}.to have_enqueued_job.exactly(1)
95
end
96
97
+ it "counts jobs even when others are removed" do
98
+ heavy_lifting_job.perform_later
99
+ expect {
100
+ perform_enqueued_jobs
101
+ hello_job.perform_later
102
+ }.to have_enqueued_job(hello_job)
103
+ end
104
+
105
it "passes when negated" do
106
expect { }.not_to have_enqueued_job
107
0 commit comments