aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2010-09-30 22:38:04 +0800
committerAaron Patterson <aaron.patterson@gmail.com>2010-09-30 23:57:55 +0800
commit0495736339df48a625fd58f4304b7b497b02d859 (patch)
treea1f2c2a26a392f1ecd2ec5adf33877a99fea5fcc /activeresource
parent6a55ca346e543e4e112648cca2a01230c32b21ec (diff)
downloadrails-0495736339df48a625fd58f4304b7b497b02d859.tar.gz
rails-0495736339df48a625fd58f4304b7b497b02d859.tar.bz2
rails-0495736339df48a625fd58f4304b7b497b02d859.zip
assert on empty array is always true. fixing test.
Diffstat (limited to 'activeresource')
-rw-r--r--activeresource/test/cases/format_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activeresource/test/cases/format_test.rb b/activeresource/test/cases/format_test.rb
index c3733e13d8..bed95ef524 100644
--- a/activeresource/test/cases/format_test.rb
+++ b/activeresource/test/cases/format_test.rb
@@ -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.select { |p| p.name == 'David' }
+ assert remote_programmers.map { |p| p.name }.include? 'David'
end
end
end