Skip to content

Commit

Permalink
Added a check in test_helper that ensures non-test flamingo namespace…
Browse files Browse the repository at this point in the history
…s won't be dropped.
  • Loading branch information
Hayes Davis committed Nov 16, 2010
1 parent e280d5a commit 451521f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/test_helper.rb
Expand Up @@ -26,8 +26,10 @@ def setup_flamingo
end

def teardown_flamingo
Flamingo.redis.keys("*").each do |key|
Flamingo.redis.del(key)
if Flamingo.namespace.to_s == "test"
Flamingo.redis.keys("*").each do |key|
Flamingo.redis.del(key)
end
end
Flamingo.teardown
end
Expand Down

0 comments on commit 451521f

Please sign in to comment.