Skip to content

Commit 00b3980

Browse files
committed
test that Queue registers itself
1 parent 96d643a commit 00b3980

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/redis_queue_test.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,10 @@ def == other
8383
end
8484
end
8585

86-
def q
87-
Resque::Queue.new 'foo', backend
86+
it "registers itself with Resque" do
87+
q
88+
89+
assert_equal ["foo"], Resque.queues
8890
end
8991

9092
def q

0 commit comments

Comments
 (0)