Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (18 sloc) 503 Bytes
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
Something went wrong with that request. Please try again.