diff options
author | Jon Leighton <j@jonathanleighton.com> | 2012-04-13 10:43:12 +0100 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2012-04-13 13:17:42 +0100 |
commit | e4f0fbd994ab0c333e615be68a8d40593c7058e3 (patch) | |
tree | 09a50548e6f2d65310361a662f7ebb0c1953cff2 /activerecord/test | |
parent | a258c27653c6a57b62b30d34791b8bb671248150 (diff) | |
download | rails-e4f0fbd994ab0c333e615be68a8d40593c7058e3.tar.gz rails-e4f0fbd994ab0c333e615be68a8d40593c7058e3.tar.bz2 rails-e4f0fbd994ab0c333e615be68a8d40593c7058e3.zip |
we have no need for the ASSOCIATION_METHODS constant
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/relation_test.rb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/activerecord/test/cases/relation_test.rb b/activerecord/test/cases/relation_test.rb index 9c8a88c3ed..5eca3e05c4 100644 --- a/activerecord/test/cases/relation_test.rb +++ b/activerecord/test/cases/relation_test.rb @@ -26,13 +26,6 @@ module ActiveRecord end end - def test_initialize_association_methods - relation = Relation.new :a, :b - Relation::ASSOCIATION_METHODS.each do |method| - assert_equal [], relation.send("#{method}_values"), method.to_s - end - end - def test_multi_value_initialize relation = Relation.new :a, :b Relation::MULTI_VALUE_METHODS.each do |method| @@ -146,7 +139,7 @@ module ActiveRecord @relation ||= Relation.new :a, :b end - (Relation::ASSOCIATION_METHODS + Relation::MULTI_VALUE_METHODS - [:references]).each do |method| + (Relation::MULTI_VALUE_METHODS - [:references]).each do |method| test "##{method}!" do assert relation.public_send("#{method}!", :foo).equal?(relation) assert_equal [:foo], relation.public_send("#{method}_values") |