Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (18 sloc) 0.503 kB
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
Jump to Line
Something went wrong with that request. Please try again.