test/test_helper.rb in action_args-2.0.0 vs test/test_helper.rb in action_args-2.1.0

- old
+ new

@@ -6,5 +6,19 @@ require 'action_controller/railtie' require 'action_args' require 'fake_app' require 'test/unit/rails/test_help' Bundler.require + +if Rails.version < '5' + module ActionControllerTestingMonkey + def get(path, params: nil, session: nil) + super path, params, session + end + + def post(path, params: nil, session: nil) + super path, params, session + end + end + + ActionController::TestCase.send :prepend, ActionControllerTestingMonkey +end