Sha256: 625a6569d1081f9797928133a0b40b4cd902d84b6934e88a0f80cc189f4f4cfe

Contents?: true

Size: 376 Bytes

Versions: 11

Compression:

Stored size: 376 Bytes

Contents

# encoding: UTF-8

require "helper"

class TestDistributedSorting < Test::Unit::TestCase

  include Helper::Distributed

  def test_sort
    assert_raise(Redis::Distributed::CannotDistribute) do
      r.set("foo:1", "s1")
      r.set("foo:2", "s2")

      r.rpush("bar", "1")
      r.rpush("bar", "2")

      r.sort("bar", :get => "foo:*", :limit => [0, 1])
    end
  end
end

Version data entries

11 entries across 11 versions & 3 rubygems

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