Sha256: d45d2a0477861bd74efc8bcd58861f5bd6064fe18dd67c71079c976798eb5d6d
Contents?: true
Size: 729 Bytes
Versions: 1
Compression:
Stored size: 729 Bytes
Contents
# 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
params_patrol-0.1.0 | test/test_helper.rb |