提交 111ae374 编写于 作者: R Ryuta Kamizono

Remove useless test case

Cannot call private methods in `@klass` against `CollectionProxy`
(inherites `Relation`) because using `public_send` in `method_missing`.
上级 801b33a4
......@@ -2037,11 +2037,6 @@ def test_sending_new_to_association_proxy_should_have_same_effect_as_calling_new
assert_equal client_association.new.attributes, client_association.send(:new).attributes
end
def test_respond_to_private_class_methods
client_association = companies(:first_firm).clients
assert !client_association.respond_to?(:private_method)
end
def test_creating_using_primary_key
firm = Firm.all.merge!(order: "id").first
client = firm.clients_using_primary_key.create!(name: "test")
......
......@@ -170,14 +170,6 @@ def rating?
def overwrite_to_raise
end
class << self
private
def private_method
"darkness"
end
end
end
class ExclusivelyDependentFirm < Company
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册