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