Sha256: fecbd08b0551b38be15275114f0581db39dd2a1db12a086b72e1a90fa23dba1d

Contents?: true

Size: 676 Bytes

Versions: 5

Compression:

Stored size: 676 Bytes

Contents

module RSpec
  module Rails
    # @api public
    # Container class for request spec functionality.
    module RequestExampleGroup
      extend ActiveSupport::Concern
      include RSpec::Rails::RailsExampleGroup
      include ActionDispatch::Integration::Runner
      include ActionDispatch::Assertions
      include RSpec::Rails::Matchers::RedirectTo
      include RSpec::Rails::Matchers::RenderTemplate
      include ActionController::TemplateAssertions

      # Delegates to `Rails.application`.
      def app
        ::Rails.application
      end

      included do
        before do
          @routes = ::Rails.application.routes
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/rspec-rails-3.4.2/lib/rspec/rails/example/request_example_group.rb
rspec-rails-3.5.0.beta1 lib/rspec/rails/example/request_example_group.rb
rspec-rails-3.4.2 lib/rspec/rails/example/request_example_group.rb
rspec-rails-3.4.1 lib/rspec/rails/example/request_example_group.rb
rspec-rails-3.4.0 lib/rspec/rails/example/request_example_group.rb