From fa2b7b03cc82bb40c76c37c91e4663de3ec0a77f Mon Sep 17 00:00:00 2001 From: eileencodes Date: Fri, 26 Aug 2016 12:24:51 -0400 Subject: Inherit from ActionDispatch::IntegrationTest Integration tests already handle all the fancy url mapping we need to do so inherting from that allows us to not need to reinvent the wheel in terms of loading up the route handling required to use `visit users_path` over `visit /users`. --- actionpack/lib/system_test_case.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'actionpack') diff --git a/actionpack/lib/system_test_case.rb b/actionpack/lib/system_test_case.rb index 4265798073..3a621fb6f0 100644 --- a/actionpack/lib/system_test_case.rb +++ b/actionpack/lib/system_test_case.rb @@ -1,8 +1,7 @@ require 'system_testing/base' module Rails - class SystemTestCase < ActiveSupport::TestCase - include Rails.application.routes.url_helpers + class SystemTestCase < ActionDispatch::IntegrationTest include SystemTesting::Base end end -- cgit v1.2.3