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
classiccms-0.5.14 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.5.13 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.5.12 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.5.11 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.5.10 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.5.9 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.5.8 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.5.7 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.5.6 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.5.5 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.5.2 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.5.1 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.5.0 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.4.2 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.4.1 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.4.0 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.3.9 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.3.8 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.3.7 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb
classiccms-0.3.6 vendor/bundle/gems/redis-2.2.2/test/distributed_sorting_test.rb