Sha256: fa34b15432d6197facde174e7e3862374352ba59e51b99a6d6eb36da012b99f7
Contents?: true
Size: 911 Bytes
Versions: 2
Compression:
Stored size: 911 Bytes
Contents
require File.expand_path('../test_helper', __FILE__) module NestedDemo class TestJobA; include Backburner::Queue; end class TestJobB; include Backburner::Queue; end end describe "Backburner::Queue module" do describe "contains known_queue_classes" do it "has all defined known queues" do assert_contains Backburner::Worker.known_queue_classes, NestedDemo::TestJobA assert_contains Backburner::Worker.known_queue_classes, NestedDemo::TestJobB end end describe "for queue method accessor" do it "should return the queue name" do assert_equal "nested-demo/test-job-a", NestedDemo::TestJobA.queue end end # queue_name 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 end # queue end # Backburner::Queue
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
backburner-0.0.2 | test/queue_test.rb |
backburner-0.0.1 | test/queue_test.rb |