Sha256: 34727c12b0bb27561bac228adeeb6fc0ad9356d8b46b476c8917078bd367145d

Contents?: true

Size: 503 Bytes

Versions: 48

Compression:

Stored size: 503 Bytes

Contents

require 'spec_helper'

module RedisFailover
  describe Util do
    describe '.symbolize_keys' do
      it 'converts hash keys to symbols' do
        Util.symbolize_keys('a' => 1, 'b' => 2).should == {:a => 1, :b => 2}
      end
    end

    describe '.different?' do
      it 'handles different arrays' do
        Util.different?([1,2,3], [1,5,3]).should be_true
      end

      it 'handles non-different arrays' do
        Util.different?([1,2,3], [3,2,1]).should be_false
      end
    end
  end
end

Version data entries

48 entries across 48 versions & 3 rubygems

Version Path
redis_failover-0.9.4 spec/util_spec.rb
redis_failover-0.9.3 spec/util_spec.rb
redis_failover-0.9.2 spec/util_spec.rb
redis_failover-0.9.1 spec/util_spec.rb
nogara-redis_failover-0.9.0 spec/util_spec.rb
redis_failover-0.9.0 spec/util_spec.rb
nogara-redis_failover-0.8.11 spec/util_spec.rb
nogara-redis_failover-0.8.10 spec/util_spec.rb
nogara-redis_failover-0.8.9 spec/util_spec.rb
redis_failover-0.8.9 spec/util_spec.rb
redis_failover-0.8.8 spec/util_spec.rb
redis_failover-0.8.7 spec/util_spec.rb
redis_failover-0.8.6 spec/util_spec.rb
redis_failover-0.8.5 spec/util_spec.rb
redis_failover-0.8.4 spec/util_spec.rb
redis_failover-0.8.3 spec/util_spec.rb
redis_failover-0.8.2 spec/util_spec.rb
redis_failover-0.8.1 spec/util_spec.rb
redis_failover-0.8.0 spec/util_spec.rb
redis_failover-0.7.0 spec/util_spec.rb