diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2007-04-26 02:03:40 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2007-04-26 02:03:40 +0000 |
commit | 46b58d80b95232bff0435d9e5ab0a3281872005f (patch) | |
tree | d830a55006d19ddbef80922e4a253a181c4dd0ff /activeresource/test | |
parent | 9b8399fb7f97c0b7f7f80ffc8bc2e74565fec642 (diff) | |
download | rails-46b58d80b95232bff0435d9e5ab0a3281872005f.tar.gz rails-46b58d80b95232bff0435d9e5ab0a3281872005f.tar.bz2 rails-46b58d80b95232bff0435d9e5ab0a3281872005f.zip |
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
Diffstat (limited to 'activeresource/test')
-rw-r--r-- | activeresource/test/base/custom_methods_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |