Module: ActionDispatch::IntegrationTest::Behavior
| Relationships & Source Files | |
| Namespace Children | |
|
Modules:
| |
| Extension / Inclusion / Inheritance Descendants | |
|
Included In:
| |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
::ActiveSupport::Concern
|
|
|
Instance Chain:
|
|
| Defined in: | actionpack/lib/action_dispatch/testing/integration.rb |
Constant Summary
Class Method Summary
::ActiveSupport::Concern - Extended
Instance Attribute Summary
Instance Method Summary
::ActionController::TemplateAssertions - Included
::ActionDispatch::Integration::Runner - Included
| #create_session, #initialize, #integration_session, | |
| #open_session | Open a new session instance. |
| #reset! | Reset the current session. |
::ActionDispatch::Assertions - Included
::ActionDispatch::Assertions::RoutingAssertions - Included
| #assert_generates | Asserts that the provided options can be used to generate the provided path. |
| #assert_recognizes | Asserts that the routing of the given |
| #assert_routing | Asserts that path and options match both ways; in other words, it verifies that |
| #method_missing | ROUTES TODO: These assertions should really work in an integration context. |
| #with_routing | A helper to make it easier to test different route configurations. |
::ActionDispatch::Assertions::ResponseAssertions - Included
| #assert_redirected_to | Asserts that the redirection options passed in match those of the redirect called in the latest action. |
| #assert_response | Asserts that the response is one of the following types: |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ActionDispatch::Integration::Runner
DSL Calls
included
[ GitHub ]617 618 619 620 621 622
# File 'actionpack/lib/action_dispatch/testing/integration.rb', line 617
included do include ActionDispatch::Routing::UrlFor include UrlOptions # don't let UrlFor override the url_options method ActiveSupport.run_load_hooks(:action_dispatch_integration_test, self) @@app = nil end
Instance Method Details
#app
[ GitHub ]# File 'actionpack/lib/action_dispatch/testing/integration.rb', line 642
def app super || self.class.app end
#document_root_element
[ GitHub ]# File 'actionpack/lib/action_dispatch/testing/integration.rb', line 646
def document_root_element html_document.root end