aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-09-30 11:00:14 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-09-30 11:00:14 -0700
commitef8ce78ba1d37c7d4246f0c6b2cf13140c2898f8 (patch)
tree8bdf2b15403ee55604826adcb0f2e77903b01391 /activeresource
parenta8a62f87f6777b1bad8f38cc4b0239b74a4f8a7a (diff)
downloadrails-ef8ce78ba1d37c7d4246f0c6b2cf13140c2898f8.tar.gz
rails-ef8ce78ba1d37c7d4246f0c6b2cf13140c2898f8.tar.bz2
rails-ef8ce78ba1d37c7d4246f0c6b2cf13140c2898f8.zip
changing map and include to find
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 bed95ef524..fc1a7b8c6f 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.map { |p| p.name }.include? 'David'
+ assert remote_programmers.find { |p| p.name == 'David' }
end
end
end