# Configure Rails Environment ENV["RAILS_ENV"] = "test" require 'test/unit' require 'rails' class FakeApplication < Rails::Application; end Rails.application = FakeApplication Rails.configuration.action_controller = ActiveSupport::OrderedOptions.new require 'strong_parameters' require 'params_patrol' module ActionController SharedTestRoutes = ActionDispatch::Routing::RouteSet.new SharedTestRoutes.draw do match ':controller(/:action)' end class Base include ActionController::Testing include SharedTestRoutes.url_helpers end class ActionController::TestCase setup do @routes = SharedTestRoutes end end end ActionController::Parameters.action_on_unpermitted_parameters = :raise