Skip to content

Commit

Permalink
add redis uri scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
camallen committed Jan 6, 2017
1 parent 879f077 commit 2100398
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/flipper/adapters/redis_cache_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}

let(:memory_adapter) { Flipper::Adapters::Memory.new }
let(:cache) { Redis.new({url: ENV.fetch('BOXEN_REDIS_URL', 'localhost:6379')}) }
let(:cache) { Redis.new({url: ENV.fetch('BOXEN_REDIS_URL', 'redis://localhost:6379')}) }
let(:adapter) { Flipper::Adapters::RedisCache.new(memory_adapter, cache) }
let(:flipper) { Flipper.new(adapter) }

Expand Down
2 changes: 1 addition & 1 deletion test/adapters/redis_cache_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class DalliTest < MiniTest::Test
prepend Flipper::Test::SharedAdapterTests

def setup
url = ENV.fetch('BOXEN_REDIS_URL', 'localhost:6379')
url = ENV.fetch('BOXEN_REDIS_URL', 'redis://localhost:6379')
@cache = Redis.new({url: url}).tap { |c| c.flushdb }
memory_adapter = Flipper::Adapters::Memory.new
@adapter = Flipper::Adapters::RedisCache.new(memory_adapter, @cache)
Expand Down
2 changes: 1 addition & 1 deletion test/adapters/redis_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class RedisTest < MiniTest::Test
prepend Flipper::Test::SharedAdapterTests

def setup
url = ENV.fetch('BOXEN_REDIS_URL', 'localhost:6379')
url = ENV.fetch('BOXEN_REDIS_URL', 'redis://localhost:6379')
client = Redis.new({url: url}).tap { |c| c.flushdb }
@adapter = Flipper::Adapters::Redis.new(client)
end
Expand Down

0 comments on commit 2100398

Please sign in to comment.