Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix warnings

  • Loading branch information...
commit 32d74f172302b3f0da9ee0ecbc62843bbcababcc 1 parent b2ad8d6
@brain-geek authored
Showing with 4 additions and 5 deletions.
  1. +4 −5 spec/taggable-cache/settings_spec.rb
View
9 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)
Please sign in to comment.
Something went wrong with that request. Please try again.