diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2008-10-04 16:53:13 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-10-04 17:49:39 +0100 |
commit | 25ca21ae21d49f06708357a5ce0670103ced2d58 (patch) | |
tree | 90fbb7068d3836589a090b740ef7c57ff1b809de /activerecord/test | |
parent | 95e1cf4812d4b964d7ab0fdf4bfa31177d27909c (diff) | |
download | rails-25ca21ae21d49f06708357a5ce0670103ced2d58.tar.gz rails-25ca21ae21d49f06708357a5ce0670103ced2d58.tar.bz2 rails-25ca21ae21d49f06708357a5ce0670103ced2d58.zip |
Introduce ActiveRecord::Reflection::ThroughReflection to simplify hm:t reflection logic
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/reflection_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/cases/reflection_test.rb b/activerecord/test/cases/reflection_test.rb index e339ef41ab..e0ed3e5886 100644 --- a/activerecord/test/cases/reflection_test.rb +++ b/activerecord/test/cases/reflection_test.rb @@ -170,6 +170,10 @@ class ReflectionTest < ActiveRecord::TestCase assert_nothing_raised { Firm.reflections[:clients] == Object.new } end + def test_has_many_through_reflection + assert_kind_of ActiveRecord::Reflection::ThroughReflection, Subscriber.reflect_on_association(:books) + end + private def assert_reflection(klass, association, options) assert reflection = klass.reflect_on_association(association) |