Sha256: 06223d9e9ce71c13b14d9ab990e2fb02c6627dd4f858d9d22ccf54f2e9ff6d1e

Contents?: true

Size: 418 Bytes

Versions: 21

Compression:

Stored size: 418 Bytes

Contents

# encoding: UTF-8

require File.expand_path("helper", File.dirname(__FILE__))

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

21 entries across 20 versions & 7 rubygems

Version Path
redis-3.0.6 test/distributed_sorting_test.rb