Permalink
Browse files

Add skeleton for Rails::SystemTestCase

This skelton is the bare minimum to get system tests to actually run in
an application. This of course doesn't yet actually run a test but it is
enough for `bin/rails test:system` to attempt to run files in
`test/system` that inherit from `Rails::SystemTestCase`.
  • Loading branch information...
eileencodes committed Aug 5, 2016
1 parent 5b9aa43 commit 97d8b7abfe75b6a7617966ad0b3d37ae9fc7adb8
Showing with 13 additions and 0 deletions.
  1. +5 −0 actionpack/lib/system_test_case.rb
  2. +8 −0 railties/lib/rails/test_help.rb
@@ -0,0 +1,5 @@
+module Rails
+ class SystemTestCase < ActiveSupport::TestCase
+ include Rails.application.routes.url_helpers
+ end
+end
@@ -7,6 +7,7 @@
require "action_controller"
require "action_controller/test_case"
require "action_dispatch/testing/integration"
+require 'system_test_case'
require "rails/generators/test_case"
require "active_support/testing/autorun"
@@ -44,3 +45,10 @@ def before_setup # :nodoc:
super
end
end
+
+class Rails::SystemTestCase
+ def before_setup # :nodoc:
+ @routes = Rails.application.routes
+ super
+ end
+end

0 comments on commit 97d8b7a

Please sign in to comment.