From 46b58d80b95232bff0435d9e5ab0a3281872005f Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 26 Apr 2007 02:03:40 +0000 Subject: The find should instantiate real objects, not return hashes git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6585 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activeresource/test/base/custom_methods_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activeresource/test/base') diff --git a/activeresource/test/base/custom_methods_test.rb b/activeresource/test/base/custom_methods_test.rb index b937fe8f9e..3648e0484d 100644 --- a/activeresource/test/base/custom_methods_test.rb +++ b/activeresource/test/base/custom_methods_test.rb @@ -82,6 +82,6 @@ class CustomMethodsTest < Test::Unit::TestCase end def test_find_custom_resources - assert_equal [{ "id" => 1, "name" => 'Matz' }], Person.find(:managers) + assert_equal 'Matz', Person.find(:managers).first.name end end \ No newline at end of file -- cgit v1.2.3