test/test_failure.rb in kthxbye-1.0.4 vs test/test_failure.rb in kthxbye-1.0.5
- old
+ new
@@ -6,10 +6,10 @@
Kthxbye.redis.flushall
end
should "create a failure" do
id = Kthxbye.enqueue("test", SimpleJob, 1, 2)
- assert Kthxbye::Failure.create(Kthxbye::Job.find(id, "test"), Exception.new("Test!"))
+ Kthxbye::Failure.create(Kthxbye::Job.find(id, "test"), Exception.new("Test!"))
assert_not_nil f = Kthxbye::Failure.all.first
assert_equal "Exception", f['type']
assert_equal "Test!", f['error']
assert_equal id, f['job']