diff options
author | Luciano G Panaro <contact@decodeuri.com> | 2009-09-26 10:33:50 -0300 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2009-09-28 14:50:33 +1300 |
commit | 4168f876238982d0d584006f50188071928a8b7f (patch) | |
tree | 93e22b323a8f3bf25c5e67697a347e1fb958b0a0 /activerecord/test/cases/reflection_test.rb | |
parent | d48ebeade2d907573e3fb086495b57b10115066c (diff) | |
download | rails-4168f876238982d0d584006f50188071928a8b7f.tar.gz rails-4168f876238982d0d584006f50188071928a8b7f.tar.bz2 rails-4168f876238982d0d584006f50188071928a8b7f.zip |
Make has_one with :conditions hash scope build or creation of the associated object with those conditions
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#3088 state:committed]
Diffstat (limited to 'activerecord/test/cases/reflection_test.rb')
-rw-r--r-- | activerecord/test/cases/reflection_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/reflection_test.rb b/activerecord/test/cases/reflection_test.rb index 0eb2da720e..f3ed8ccd8d 100644 --- a/activerecord/test/cases/reflection_test.rb +++ b/activerecord/test/cases/reflection_test.rb @@ -176,9 +176,9 @@ class ReflectionTest < ActiveRecord::TestCase def test_reflection_of_all_associations # FIXME these assertions bust a lot - assert_equal 35, Firm.reflect_on_all_associations.size + assert_equal 36, Firm.reflect_on_all_associations.size assert_equal 26, Firm.reflect_on_all_associations(:has_many).size - assert_equal 9, Firm.reflect_on_all_associations(:has_one).size + assert_equal 10, Firm.reflect_on_all_associations(:has_one).size assert_equal 0, Firm.reflect_on_all_associations(:belongs_to).size end |