提交 a258c276 编写于 作者: J Jon Leighton

we don't need to test that constant assignment works

上级 88d1fafc
......@@ -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|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册