Sha256: 2e79f67570b6421b88c60c35bb5d67678274de054577541789eaec303a3387fc

Contents?: true

Size: 312 Bytes

Versions: 3

Compression:

Stored size: 312 Bytes

Contents

module Support
  module ControllerHelpers
    extend ActiveSupport::Concern

    # Wrap `ActionController::TestCase::Behavior` actions with routing fixes
    # for engine development.
    def process(*args)
      args[1] = (args[1] || {}).merge({ :use_route => :corkboard })
      super(*args)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
corkboard-0.1.3 spec/support/helpers/controller_helpers.rb
corkboard-0.1.2 spec/support/helpers/controller_helpers.rb
corkboard-0.1.1 spec/support/helpers/controller_helpers.rb