Skip to content

Commit 96d643a

Browse files
committed
don't namespace the test unless it's set by test_helper
1 parent 2efbd78 commit 96d643a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/redis_queue_test.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ def == other
1616
end
1717
end
1818

19+
before do
20+
Resque.redis.flushall
21+
end
22+
1923
it "generates a redis_name" do
2024
assert_equal "queue:foo", q.redis_name
2125
end
@@ -83,7 +87,7 @@ def q
8387
Resque::Queue.new 'foo', backend
8488
end
8589

86-
def backend
87-
Redis::Namespace.new :resque, :redis => Resque.redis
90+
def q
91+
Resque::Queue.new 'foo', Resque.redis
8892
end
8993
end

0 commit comments

Comments
 (0)