spec/commands/sunion_spec.rb in mock_redis-0.4.1 vs spec/commands/sunion_spec.rb in mock_redis-0.5.0

- old
+ new

@@ -8,11 +8,11 @@ [2, 4, 6, 8, 10].each {|i| @redises.sadd(@evens, i) } [2, 3, 5, 7].each {|i| @redises.sadd(@primes, i) } end it "returns the elements in the resulting set" do - @redises.sunion(@evens, @primes).should == %w[10 2 3 4 5 6 7 8] + @redises.sunion(@evens, @primes).should == %w[2 4 6 8 10 3 5 7] end it "treats missing keys as empty sets" do @redises.sunion(@primes, 'mock-redis-test:nonesuch'). should == %w[2 3 5 7] @@ -35,6 +35,6 @@ @redises.sunion('mock-redis-test:notset', @numbers) end.should raise_error(RuntimeError) end end - +