Skip to content

Commit a258c27

Browse files
committed
we don't need to test that constant assignment works
1 parent 88d1faf commit a258c27

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

activerecord/test/cases/relation_test.rb

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,35 +19,20 @@ def test_construction
1919
assert !relation.loaded, 'relation is not loaded'
2020
end
2121

22-
def test_single_values
23-
assert_equal [:limit, :offset, :lock, :readonly, :from, :reordering, :reverse_order, :uniq].map(&:to_s).sort,
24-
Relation::SINGLE_VALUE_METHODS.map(&:to_s).sort
25-
end
26-
2722
def test_initialize_single_values
2823
relation = Relation.new :a, :b
2924
Relation::SINGLE_VALUE_METHODS.each do |method|
3025
assert_nil relation.send("#{method}_value"), method.to_s
3126
end
3227
end
3328

34-
def test_association_methods
35-
assert_equal [:includes, :eager_load, :preload].map(&:to_s).sort,
36-
Relation::ASSOCIATION_METHODS.map(&:to_s).sort
37-
end
38-
3929
def test_initialize_association_methods
4030
relation = Relation.new :a, :b
4131
Relation::ASSOCIATION_METHODS.each do |method|
4232
assert_equal [], relation.send("#{method}_values"), method.to_s
4333
end
4434
end
4535

46-
def test_multi_value_methods
47-
assert_equal [:select, :group, :order, :joins, :where, :having, :bind, :references].map(&:to_s).sort,
48-
Relation::MULTI_VALUE_METHODS.map(&:to_s).sort
49-
end
50-
5136
def test_multi_value_initialize
5237
relation = Relation.new :a, :b
5338
Relation::MULTI_VALUE_METHODS.each do |method|

0 commit comments

Comments
 (0)