Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 48b862b9d6
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (34 sloc) 1.137 kB
require 'minitest/rails/active_support'
require 'action_dispatch/testing/integration'
require 'action_controller/test_case'
require 'action_dispatch/routing/url_for'
module MiniTest
module Rails
module ActionDispatch
class IntegrationTest < MiniTest::Rails::ActiveSupport::TestCase
include ::ActionDispatch::Integration::Runner
include ::ActionController::TemplateAssertions
include ::ActionDispatch::Routing::UrlFor
@@app = nil
def self.app
# DEPRECATE Rails application fallback
# This should be set by the initializer
@@app || (defined?(::Rails.application) && ::Rails.application) || nil
end
def self.app=(app)
@@app = app
end
def app
super || ::ActionDispatch::IntegrationTest.app
end
def url_options
reset! unless integration_session
integration_session.url_options
end
# Register by name
register_spec_type(/Acceptance ?Test\z/i, self)
register_spec_type(/Integration ?Test\z/i, self)
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.