action_args 2.3.0 → 2.6.0

Sign up to get free protection for your applications and to get access to all the features.
data/test/test_helper.rb DELETED
@@ -1,29 +0,0 @@
1
- # frozen_string_literal: true
2
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
- $LOAD_PATH.unshift(File.dirname(__FILE__))
4
- # load Rails first
5
- require 'rails'
6
- require 'active_record'
7
- require 'action_controller/railtie'
8
- begin
9
- require 'rails-controller-testing'
10
- rescue LoadError
11
- end
12
- require 'action_args'
13
- require 'fake_app'
14
- require 'test/unit/rails/test_help'
15
- Bundler.require
16
-
17
- if Rails.version < '5'
18
- module ActionControllerTestingMonkey
19
- def get(path, params: nil, session: nil)
20
- super path, params, session
21
- end
22
-
23
- def post(path, params: nil, session: nil)
24
- super path, params, session
25
- end
26
- end
27
-
28
- ActionController::TestCase.send :prepend, ActionControllerTestingMonkey
29
- end