changing map and include to find

This commit is contained in:
Aaron Patterson 2010-09-30 11:00:14 -07:00
parent a8a62f87f6
commit ef8ce78ba1

@ -33,7 +33,7 @@ def test_formats_on_collection
ActiveResource::HttpMock.respond_to.get "/people.#{format}", {'Accept' => ActiveResource::Formats[format].mime_type}, ActiveResource::Formats[format].encode(@programmers)
remote_programmers = Person.find(:all)
assert_equal 2, remote_programmers.size
assert remote_programmers.map { |p| p.name }.include? 'David'
assert remote_programmers.find { |p| p.name == 'David' }
end
end
end