Sha256: 20485d43e34741fd05e3d8eb0f8a9d7370a66bdbdd4aeee66b26c12c5acbcb0e

Contents?: true

Size: 485 Bytes

Versions: 11

Compression:

Stored size: 485 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

  include IntercomRails::CustomDataHelper
  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

11 entries across 11 versions & 1 rubygems

Version Path
intercom-rails-0.2.8 test/action_controller_test_setup.rb
intercom-rails-0.2.7 test/action_controller_test_setup.rb
intercom-rails-0.2.6 test/action_controller_test_setup.rb
intercom-rails-0.2.5 test/action_controller_test_setup.rb
intercom-rails-0.2.4 test/action_controller_test_setup.rb
intercom-rails-0.2.3 test/action_controller_test_setup.rb
intercom-rails-0.2.2 test/action_controller_test_setup.rb
intercom-rails-0.2.1 test/action_controller_test_setup.rb
intercom-rails-0.2.0 test/action_controller_test_setup.rb
intercom-rails-0.1.1 test/action_controller_test_setup.rb
intercom-rails-0.1.0 test/action_controller_test_setup.rb