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
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class FormatTest < Test::Unit::TestCase
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