Sha256: f71a89c729460c607697cf59fc78a6527a30b9678a10c3fdf64bf3748e2e17d2

Contents?: true

Size: 1019 Bytes

Versions: 6

Compression:

Stored size: 1019 Bytes

Contents

# encoding: UTF-8

require "helper"
require "lint/strings"

class TestDistributedCommandsOnStrings < Test::Unit::TestCase

  include Helper::Distributed
  include Lint::Strings

  def test_mget
    assert_raise Redis::Distributed::CannotDistribute do
      r.mget("foo", "bar")
    end
  end

  def test_mget_mapped
    assert_raise Redis::Distributed::CannotDistribute do
      r.mapped_mget("foo", "bar")
    end
  end

  def test_mset
    assert_raise Redis::Distributed::CannotDistribute do
      r.mset(:foo, "s1", :bar, "s2")
    end
  end

  def test_mset_mapped
    assert_raise Redis::Distributed::CannotDistribute do
      r.mapped_mset(:foo => "s1", :bar => "s2")
    end
  end

  def test_msetnx
    assert_raise Redis::Distributed::CannotDistribute do
      r.set("foo", "s1")
      r.msetnx(:foo, "s2", :bar, "s3")
    end
  end

  def test_msetnx_mapped
    assert_raise Redis::Distributed::CannotDistribute do
      r.set("foo", "s1")
      r.mapped_msetnx(:foo => "s2", :bar => "s3")
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
remq-0.0.4 vendor/bundle/gems/redis-3.0.2/test/distributed_commands_on_strings_test.rb
remq-0.0.3 vendor/bundle/gems/redis-3.0.2/test/distributed_commands_on_strings_test.rb
redis-3.0.2 test/distributed_commands_on_strings_test.rb
redis-3.0.1 test/distributed_commands_on_strings_test.rb
redis-3.0.0 test/distributed_commands_on_strings_test.rb
redis-3.0.0.rc2 test/distributed_commands_on_strings_test.rb