mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Prefer assert_not over refute
This commit is contained in:
parent
7145986e88
commit
d4cfd54308
2 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ module ActionDispatch
|
|||
get 'foo', to: SimpleApp.new('foo#index')
|
||||
end
|
||||
|
||||
refute empty?
|
||||
assert_not empty?
|
||||
end
|
||||
|
||||
test "url helpers are added when route is added" do
|
||||
|
|
|
@ -14,7 +14,7 @@ module ActionDispatch
|
|||
requirements = { :hello => /world/ }
|
||||
|
||||
routes.add_route nil, path, requirements, {:id => nil}, {}
|
||||
refute routes.empty?
|
||||
assert_not routes.empty?
|
||||
assert_equal 1, routes.length
|
||||
|
||||
routes.clear
|
||||
|
|
Loading…
Reference in a new issue