Module: RSpec::Rails::RequestExampleGroup

Extended by:
ActiveSupport::Concern
Includes:
ActionController::TemplateAssertions, ActionDispatch::Assertions, ActionDispatch::Integration::Runner, BrowserSimulators, Matchers::RedirectTo, Matchers::RenderTemplate, RailsExampleGroup
Defined in:
lib/rspec/rails/example/request_example_group.rb

Overview

Extends ActionDispatch::Integration::Runner to work with RSpec.

Matchers

In addition to the stock matchers from rspec-expectations, request specs add these matchers, which delegate to rails’ assertions:

response.should render_template(*args)
=> delegates to assert_template(*args)

response.should redirect_to(destination)
=> delegates to assert_redirected_to(destination)

Defined Under Namespace

Modules: InstanceMethods

Method Summary

Methods included from BrowserSimulators

included