Sha256: 65150e0f226b7ea9dc63cb7b646c6aabe67d971743923c81d07c3580bea5813a

Contents?: true

Size: 717 Bytes

Versions: 2

Compression:

Stored size: 717 Bytes

Contents

# frozen_string_literal: true

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
# load Rails first
require 'rails'
require 'active_record'
require 'action_controller/railtie'
begin
  require 'rails-controller-testing'
rescue LoadError
end
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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
action_args-2.4.0 test/test_helper.rb
action_args-2.3.2 test/test_helper.rb