test/queue_test.rb in backburner-1.0.0 vs test/queue_test.rb in backburner-1.1.0

- old
+ new

@@ -22,10 +22,15 @@ describe "for queue assignment method" do it "should allow queue name to be assigned" do NestedDemo::TestJobB.queue("nested/job") assert_equal "nested/job", NestedDemo::TestJobB.queue end + + it "should allow lambdas" do + NestedDemo::TestJobB.queue(lambda { |klass| klass.name }) + assert_equal "NestedDemo::TestJobB", NestedDemo::TestJobB.queue + end end # queue describe "for queue_priority assignment method" do it "should allow queue priority to be assigned" do NestedDemo::TestJobB.queue_priority(1000) @@ -37,6 +42,6 @@ it "should allow queue respond_timeout to be assigned" do NestedDemo::TestJobB.queue_respond_timeout(300) assert_equal 300, NestedDemo::TestJobB.queue_respond_timeout end end # queue_respond_timeout -end # Backburner::Queue \ No newline at end of file +end # Backburner::Queue