Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

we don't need to test that constant assignment works

  • Loading branch information...
commit a258c27653c6a57b62b30d34791b8bb671248150 1 parent 88d1faf
Jon Leighton jonleighton authored
Showing with 0 additions and 15 deletions.
  1. +0 −15 activerecord/test/cases/relation_test.rb
15 activerecord/test/cases/relation_test.rb
View
@@ -19,11 +19,6 @@ def test_construction
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 @@ def test_initialize_single_values
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 @@ def test_initialize_association_methods
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|
Please sign in to comment.
Something went wrong with that request. Please try again.