spec/pet_spec.rb in petfinder-1.0.3 vs spec/pet_spec.rb in petfinder-1.0.4
- old
+ new
@@ -30,10 +30,10 @@
@pet.description_sanitized.should_not =~ /<div>/
end
it "should populate multiple pet objects" do
pets = Petfinder::Pet.multiple(Nokogiri::XML(fixture_file('pet_list.xml')))
- pets.should have(25).items
+ pets.count.should eq(25)
end
it "should return a friendly inspect" do
@pet.inspect.should eq("#<Pet id: '10141994', name: 'Charlie', animal: 'Cat', mix: 'no', sex: 'M'>")
end