Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

renaming tests by removing proxy_options from names

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
commit 659e3b02ab98c8f043dfb02d997758d122034181 1 parent e13e8dc
@neerajdotname neerajdotname authored josevalim committed
Showing with 5 additions and 5 deletions.
  1. +5 −5 activerecord/test/cases/named_scope_test.rb
View
10 activerecord/test/cases/named_scope_test.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.