Skip to content

Commit

Permalink
this is a better way to test this feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan R. Smith committed Mar 15, 2011
1 parent 1f3852d commit 5016699
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/queue_test.rb
Expand Up @@ -33,10 +33,12 @@
QC::Queue.instance.setup(
:data_store => QC::DurableArray.new(:database => ENV["DATABASE_URL"])
)
QC::Queue.instance.delete_all

QC::Queue.instance.enqueue "Notifier.send", "params"

jobs = QC::Queue.instance.query("Notifier.send")
assert_equal 1, jobs.length
assert_equal "Notifier.send", jobs.first.signature
end

Expand Down

0 comments on commit 5016699

Please sign in to comment.