From d4cfd543084f076af86e1716a7a5ef7dc30a7f17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Mon, 18 May 2015 19:33:25 -0300 Subject: [PATCH] Prefer assert_not over refute --- actionpack/test/dispatch/routing/route_set_test.rb | 2 +- actionpack/test/journey/routes_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/actionpack/test/dispatch/routing/route_set_test.rb b/actionpack/test/dispatch/routing/route_set_test.rb index 0c770a4406..9327fe12c6 100644 --- a/actionpack/test/dispatch/routing/route_set_test.rb +++ b/actionpack/test/dispatch/routing/route_set_test.rb @@ -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 diff --git a/actionpack/test/journey/routes_test.rb b/actionpack/test/journey/routes_test.rb index 5e3b30dcfe..2a1c1c337e 100644 --- a/actionpack/test/journey/routes_test.rb +++ b/actionpack/test/journey/routes_test.rb @@ -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