Permalink
Browse files

Fix warnings

  • Loading branch information...
1 parent b2ad8d6 commit 32d74f172302b3f0da9ee0ecbc62843bbcababcc @brain-geek committed Mar 15, 2012
Showing with 4 additions and 5 deletions.
  1. +4 −5 spec/taggable-cache/settings_spec.rb
@@ -2,7 +2,8 @@
describe TaggableCache::Store do
after :all do
- ENV = {}
+ ENV.delete("REDIS_HOST")
+ ENV.delete("REDIS_PORT")
end
it "should fall back to defaults if no settings given" do
@@ -12,10 +13,8 @@
end
it "should use ENV settings" do
- ENV = {
- "REDIS_HOST" => 'hostname.lvh.me',
- "REDIS_PORT" => '1234'
- }
+ ENV["REDIS_HOST"] = 'hostname.lvh.me';
+ ENV["REDIS_PORT"] = '1234';
Redis.should_receive(:new).with(:host => 'hostname.lvh.me', :port => 1234)

0 comments on commit 32d74f1

Please sign in to comment.