spec/hamster/hash/any_spec.rb in hamster-0.1.19 vs spec/hamster/hash/any_spec.rb in hamster-0.1.20
- old
+ new
@@ -13,15 +13,15 @@
before do
@hash = Hamster.hash
end
it "with a block returns false" do
- @hash.send(method) {}.should be_false
+ @hash.send(method) {}.should == false
end
it "with no block returns false" do
- @hash.send(method).should be_false
+ @hash.send(method).should == false
end
end
describe "when not empty" do
@@ -38,24 +38,24 @@
["C", "see"],
[nil, "NIL"],
].each do |pair|
it "returns true if the block ever returns true (#{pair.inspect})" do
- @hash.send(method) { |key, value| key == pair.first && value == pair.last }.should be_true
+ @hash.send(method) { |key, value| key == pair.first && value == pair.last }.should == true
end
it "returns false if the block always returns false" do
- @hash.send(method) { |key, value| key == "D" && value == "dee" }.should be_false
+ @hash.send(method) { |key, value| key == "D" && value == "dee" }.should == false
end
end
end
describe "with no block" do
it "returns true" do
- @hash.send(method).should be_true
+ @hash.send(method).should == true
end
end
end