Sha256: a902538d044c0fd59b96db633cac6094ce132f3b63fca93687ad2ab9533fb26a

Contents?: true

Size: 486 Bytes

Versions: 33

Compression:

Stored size: 486 Bytes

Contents

require 'spec_helper'

describe '#mapped_mset(hash)' do
  before do
    @key1 = 'mock-redis-test:a'
    @key2 = 'mock-redis-test:b'
    @key3 = 'mock-redis-test:c'

    @redises.set(@key1, '1')
    @redises.set(@key2, '2')
  end

  it 'sets the values properly' do
    @redises.mapped_mset(@key1 => 'one', @key3 => 'three').should eq('OK')
    @redises.get(@key1).should eq('one')
    @redises.get(@key2).should eq('2') # left alone
    @redises.get(@key3).should eq('three')
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
mock_redis-0.36.0 spec/commands/mapped_mset_spec.rb
mock_redis-0.35.0 spec/commands/mapped_mset_spec.rb
mock_redis-0.34.0 spec/commands/mapped_mset_spec.rb
mock_redis-0.33.0 spec/commands/mapped_mset_spec.rb
mock_redis-0.32.0 spec/commands/mapped_mset_spec.rb
mock_redis-0.31.0 spec/commands/mapped_mset_spec.rb
mock_redis-0.30.0 spec/commands/mapped_mset_spec.rb
mock_redis-0.29.0 spec/commands/mapped_mset_spec.rb
mock_redis-0.28.0 spec/commands/mapped_mset_spec.rb
mock_redis-0.27.3 spec/commands/mapped_mset_spec.rb
mock_redis-0.27.2 spec/commands/mapped_mset_spec.rb
mock_redis-0.27.1 spec/commands/mapped_mset_spec.rb
mock_redis-0.27.0 spec/commands/mapped_mset_spec.rb
mock_redis-0.26.0 spec/commands/mapped_mset_spec.rb
mock_redis-0.25.0 spec/commands/mapped_mset_spec.rb
mock_redis-0.24.0 spec/commands/mapped_mset_spec.rb
mock_redis-0.23.0 spec/commands/mapped_mset_spec.rb
mock_redis-0.22.0 spec/commands/mapped_mset_spec.rb
mock_redis-0.21.0 spec/commands/mapped_mset_spec.rb
mock_redis-0.20.0 spec/commands/mapped_mset_spec.rb