提交 659e3b02 编写于 作者: N Neeraj Singh 提交者: José Valim

renaming tests by removing proxy_options from names

Signed-off-by: NJosé Valim <jose.valim@gmail.com>
上级 e13e8dcf
......@@ -270,27 +270,27 @@ def test_many_should_return_true_if_more_than_one
assert Topic.base.many?
end
def test_should_build_with_proxy_options
def test_should_build_on_top_of_named_scope
topic = Topic.approved.build({})
assert topic.approved
end
def test_should_build_new_with_proxy_options
def test_should_build_new_on_top_of_named_scope
topic = Topic.approved.new
assert topic.approved
end
def test_should_create_with_proxy_options
def test_should_create_on_top_of_named_scope
topic = Topic.approved.create({})
assert topic.approved
end
def test_should_create_with_bang_with_proxy_options
def test_should_create_with_bang_on_top_of_named_scope
topic = Topic.approved.create!({})
assert topic.approved
end
def test_should_build_with_proxy_options_chained
def test_should_build_on_top_of_chained_named_scopes
topic = Topic.approved.by_lifo.build({})
assert topic.approved
assert_equal 'lifo', topic.author_name
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册