Sha256: 2f5ae92e0590f7f5e443fd4cf5e05005ac2f97a7a9e8434695f68ad1a748dc39

Contents?: true

Size: 538 Bytes

Versions: 21

Compression:

Stored size: 538 Bytes

Contents

require 'spec_helper'

describe '#sort(key, options)' do
  before do
    @key = "mock-redis-test:zset_sort"

    @redises.zadd(@key, 100, '1')
    @redises.zadd(@key, 99, '2')

    @redises.set('mock-redis-test:values_1', 'a')
    @redises.set('mock-redis-test:values_2', 'b')

    @redises.set('mock-redis-test:weight_1', '2')
    @redises.set('mock-redis-test:weight_2', '1')

    @redises.hset('mock-redis-test:hash_1', 'key', 'x')
    @redises.hset('mock-redis-test:hash_2', 'key', 'y')
  end

  it_should_behave_like "a sortable"
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
mock_redis-0.14.1 spec/commands/sort_zset_spec.rb
mock_redis-0.14.0 spec/commands/sort_zset_spec.rb
mock_redis-0.13.2 spec/commands/sort_zset_spec.rb
mock_redis-0.13.1 spec/commands/sort_zset_spec.rb
mock_redis-0.13.0 spec/commands/sort_zset_spec.rb
mock_redis-0.12.1 spec/commands/sort_zset_spec.rb
mock_redis-0.12.0 spec/commands/sort_zset_spec.rb
mock_redis-0.11.0 spec/commands/sort_zset_spec.rb
mock_redis-0.10.0 spec/commands/sort_zset_spec.rb
mock_redis-0.9.0 spec/commands/sort_zset_spec.rb
mock_redis-0.8.2 spec/commands/sort_zset_spec.rb
mock_redis-0.8.1 spec/commands/sort_zset_spec.rb
mock_redis-0.8.0 spec/commands/sort_zset_spec.rb
mock_redis-0.7.0 spec/commands/sort_zset_spec.rb
mock_redis-0.6.6 spec/commands/sort_zset_spec.rb
mock_redis-0.6.5 spec/commands/sort_zset_spec.rb
mock_redis-0.6.4 spec/commands/sort_zset_spec.rb
mock_redis-0.6.3 spec/commands/sort_zset_spec.rb
mock_redis-0.6.2 spec/commands/sort_zset_spec.rb
mock_redis-0.6.1 spec/commands/sort_zset_spec.rb