Skip to content

Commit

Permalink
assert on empty array is always true. fixing test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeraj Singh authored and tenderlove committed Sep 30, 2010
1 parent 6a55ca3 commit 0495736
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activeresource/test/cases/format_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.select { |p| p.name == 'David' }
assert remote_programmers.map { |p| p.name }.include? 'David'
end
end
end
Expand Down

0 comments on commit 0495736

Please sign in to comment.