Sha256: b86e12a79dd40ed9c60702283c825f4584b81c0211ca4efe8c59d1db5979ec4d

Contents?: true

Size: 300 Bytes

Versions: 2

Compression:

Stored size: 300 Bytes

Contents

shared_context 'shared hosts context' do
  let(:old_hosts) { %w(redis://localhost:6379 redis://localhost:6378) }
  let(:new_hosts) { old_hosts + ['redis://localhost:6377'] }

  before do
    expect(Redis).to receive(:new).at_least(1).times do |options|
      MockRedis.new(options)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
redis_migrator-0.1.2 spec/shared_hosts_context.rb
redis_migrator-0.1.1 spec/shared_hosts_context.rb