diff options
Diffstat (limited to 'activerecord/test/associations_join_model_test.rb')
-rw-r--r-- | activerecord/test/associations_join_model_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/associations_join_model_test.rb b/activerecord/test/associations_join_model_test.rb index 58208ced65..7395aa5739 100644 --- a/activerecord/test/associations_join_model_test.rb +++ b/activerecord/test/associations_join_model_test.rb @@ -207,6 +207,10 @@ class AssociationsJoinModelTest < Test::Unit::TestCase assert posts(:welcome, :reload)[:taggings_count].zero? end + def test_unavailable_through_reflection + assert_raises (ActiveRecord::ActiveRecordError) { authors(:david).nothings } + end + private # create dynamic Post models to allow different dependency options def find_post_with_dependency(post_id, association, association_name, dependency) |