Sha256: 0491fbd3abc9b3f34cf3d6141bb2041271b8768f4e10ce4224e04d60bcde82bf

Contents?: true

Size: 448 Bytes

Versions: 56

Compression:

Stored size: 448 Bytes

Contents

# encoding: UTF-8

require File.expand_path("./helper", File.dirname(__FILE__))
require "redis/distributed"

setup do
  log = StringIO.new
  init Redis::Distributed.new(NODES, :logger => ::Logger.new(log))
end

test "SORT" do |r|
  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

Version data entries

56 entries across 56 versions & 8 rubygems

Version Path
abaci-0.3.0 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.7.5 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.7.4 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.7.3 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.7.2 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.7.1 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.7.0 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.6.9 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.6.8 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.6.7 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.6.6 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.6.5 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.6.4 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.6.3 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.6.2 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.6.1 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.6.0 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.5.17 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.5.16 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.5.15 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb