Sha256: 08770fe786f771d469eccbf409f27663b198fcfb82ca162ea754504004354f1a

Contents?: true

Size: 1.02 KB

Versions: 11

Compression:

Stored size: 1.02 KB

Contents

# encoding: UTF-8

require "helper"
require "lint/blocking_commands"

class TestDistributedBlockingCommands < Test::Unit::TestCase

  include Helper::Distributed
  include Lint::BlockingCommands

  def test_blpop_raises
    assert_raises(Redis::Distributed::CannotDistribute) do
      r.blpop(["foo", "bar"])
    end
  end

  def test_blpop_raises_with_old_prototype
    assert_raises(Redis::Distributed::CannotDistribute) do
      r.blpop("foo", "bar", 0)
    end
  end

  def test_brpop_raises
    assert_raises(Redis::Distributed::CannotDistribute) do
      r.brpop(["foo", "bar"])
    end
  end

  def test_brpop_raises_with_old_prototype
    assert_raises(Redis::Distributed::CannotDistribute) do
      r.brpop("foo", "bar", 0)
    end
  end

  def test_brpoplpush_raises
    assert_raises(Redis::Distributed::CannotDistribute) do
      r.brpoplpush("foo", "bar")
    end
  end

  def test_brpoplpush_raises_with_old_prototype
    assert_raises(Redis::Distributed::CannotDistribute) do
      r.brpoplpush("foo", "bar", 0)
    end
  end
end

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
redis-3.0.5 test/distributed_blocking_commands_test.rb
sidekiq-statsd-0.1.1 vendor/ruby/1.9.1/gems/redis-3.0.4/test/distributed_blocking_commands_test.rb
sidekiq-statsd-0.1.0 vendor/ruby/1.9.1/gems/redis-3.0.4/test/distributed_blocking_commands_test.rb
redis-3.0.4 test/distributed_blocking_commands_test.rb
redis-3.0.3 test/distributed_blocking_commands_test.rb
remq-0.0.4 vendor/bundle/gems/redis-3.0.2/test/distributed_blocking_commands_test.rb
remq-0.0.3 vendor/bundle/gems/redis-3.0.2/test/distributed_blocking_commands_test.rb
redis-3.0.2 test/distributed_blocking_commands_test.rb
redis-3.0.1 test/distributed_blocking_commands_test.rb
redis-3.0.0 test/distributed_blocking_commands_test.rb
redis-3.0.0.rc2 test/distributed_blocking_commands_test.rb