diff options
author | Jon Leighton <j@jonathanleighton.com> | 2012-04-13 10:35:24 +0100 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2012-04-13 13:17:42 +0100 |
commit | a258c27653c6a57b62b30d34791b8bb671248150 (patch) | |
tree | beb77a7be7d15ea3fada63c7a063cef81a438f9e /activerecord/test | |
parent | 88d1fafc221cf4dc37f21437342e35a7a714e489 (diff) | |
download | rails-a258c27653c6a57b62b30d34791b8bb671248150.tar.gz rails-a258c27653c6a57b62b30d34791b8bb671248150.tar.bz2 rails-a258c27653c6a57b62b30d34791b8bb671248150.zip |
we don't need to test that constant assignment works
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/relation_test.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/activerecord/test/cases/relation_test.rb b/activerecord/test/cases/relation_test.rb index 4b18c37d27..9c8a88c3ed 100644 --- a/activerecord/test/cases/relation_test.rb +++ b/activerecord/test/cases/relation_test.rb @@ -19,11 +19,6 @@ module ActiveRecord assert !relation.loaded, 'relation is not loaded' end - def test_single_values - assert_equal [:limit, :offset, :lock, :readonly, :from, :reordering, :reverse_order, :uniq].map(&:to_s).sort, - Relation::SINGLE_VALUE_METHODS.map(&:to_s).sort - end - def test_initialize_single_values relation = Relation.new :a, :b Relation::SINGLE_VALUE_METHODS.each do |method| @@ -31,11 +26,6 @@ module ActiveRecord end end - def test_association_methods - assert_equal [:includes, :eager_load, :preload].map(&:to_s).sort, - Relation::ASSOCIATION_METHODS.map(&:to_s).sort - end - def test_initialize_association_methods relation = Relation.new :a, :b Relation::ASSOCIATION_METHODS.each do |method| @@ -43,11 +33,6 @@ module ActiveRecord end end - def test_multi_value_methods - assert_equal [:select, :group, :order, :joins, :where, :having, :bind, :references].map(&:to_s).sort, - Relation::MULTI_VALUE_METHODS.map(&:to_s).sort - end - def test_multi_value_initialize relation = Relation.new :a, :b Relation::MULTI_VALUE_METHODS.each do |method| |