Sha256: 972178e696470fbfa7af3edd5fb23b26d15ef6c472621fe3061df2def4419a20

Contents?: true

Size: 443 Bytes

Versions: 1

Compression:

Stored size: 443 Bytes

Contents

require 'test_setup'

require 'action_controller'
require 'action_controller/test_case'

TestRoutes = ActionDispatch::Routing::RouteSet.new
TestRoutes.draw do
  get ':controller(/:action)'
end

class ActionController::Base

  after_filter IntercomRails::AutoIncludeFilter

  include TestRoutes.url_helpers
  include TestRoutes.mounted_helpers

end

class ActionController::TestCase

  def setup
    super
    @routes = TestRoutes
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
intercom-rails-0.0.9 test/action_controller_test_setup.rb