1
0
Fork 0
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:
Rafael Mendonça França 2015-05-18 19:33:25 -03:00
parent 7145986e88
commit d4cfd54308
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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