spec/qe/matchers_spec.rb in qe-0.3.2 vs spec/qe/matchers_spec.rb in qe-0.3.3
- old
+ new
@@ -9,9 +9,15 @@
expect {
HelloWorker.enqueue(a: 1)
}.to enqueue(HelloWorker).with(a: 1)
end
+ it "enqueues job with options as a block" do
+ expect {
+ HelloWorker.enqueue(a: 1)
+ }.to enqueue(HelloWorker).with { {a: 1} }
+ end
+
it "enqueues job without mentioning options" do
expect {
HelloWorker.enqueue(a: 1)
}.to enqueue(HelloWorker)
end