spec/spec/matchers/have_spec.rb in rspec-1.0.8 vs spec/spec/matchers/have_spec.rb in rspec-1.1.0

- old
+ new

@@ -248,10 +248,10 @@ describe "have(n).items where target IS a collection" do it "should reference the number of items IN the collection" do [1,2,3].should have(3).items end - it "should reference the number of items IN the collection" do + it "should fail when the number of items IN the collection is not as expected" do lambda { [1,2,3].should have(7).items }.should fail_with("expected 7 items, got 3") end end describe "have(n).characters where target IS a String" do