Permalink
Browse files

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`.
  • Loading branch information...
eileencodes committed Aug 26, 2016
1 parent 93eff63 commit fa2b7b03cc82bb40c76c37c91e4663de3ec0a77f
Showing with 1 addition and 2 deletions.
  1. +1 −2 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

0 comments on commit fa2b7b0

Please sign in to comment.