Sha256: 819a0ea46ec665befdefb6cb3607119e84e9525179ea3d819968a845cd9171cf

Contents?: true

Size: 532 Bytes

Versions: 33

Compression:

Stored size: 532 Bytes

Contents

require 'spec_helper'

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

    @redises.rpush(@key, '1')
    @redises.rpush(@key, '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

33 entries across 33 versions & 1 rubygems

Version Path
mock_redis-0.36.0 spec/commands/sort_list_spec.rb
mock_redis-0.35.0 spec/commands/sort_list_spec.rb
mock_redis-0.34.0 spec/commands/sort_list_spec.rb
mock_redis-0.33.0 spec/commands/sort_list_spec.rb
mock_redis-0.32.0 spec/commands/sort_list_spec.rb
mock_redis-0.31.0 spec/commands/sort_list_spec.rb
mock_redis-0.30.0 spec/commands/sort_list_spec.rb
mock_redis-0.29.0 spec/commands/sort_list_spec.rb
mock_redis-0.28.0 spec/commands/sort_list_spec.rb
mock_redis-0.27.3 spec/commands/sort_list_spec.rb
mock_redis-0.27.2 spec/commands/sort_list_spec.rb
mock_redis-0.27.1 spec/commands/sort_list_spec.rb
mock_redis-0.27.0 spec/commands/sort_list_spec.rb
mock_redis-0.26.0 spec/commands/sort_list_spec.rb
mock_redis-0.25.0 spec/commands/sort_list_spec.rb
mock_redis-0.24.0 spec/commands/sort_list_spec.rb
mock_redis-0.23.0 spec/commands/sort_list_spec.rb
mock_redis-0.22.0 spec/commands/sort_list_spec.rb
mock_redis-0.21.0 spec/commands/sort_list_spec.rb
mock_redis-0.20.0 spec/commands/sort_list_spec.rb