spec/util_spec.rb in redis_failover-0.2.0 vs spec/util_spec.rb in redis_failover-0.3.0
- old
+ new
@@ -5,7 +5,17 @@
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