Sha256: 562620ce67ed4d19f806398d1f3e961db9eb78b62fbac96353aade8d7adab5b3

Contents?: true

Size: 667 Bytes

Versions: 24

Compression:

Stored size: 667 Bytes

Contents

require 'action_dispatch'
require 'capybara/rails'
require 'capybara/dsl'

module RSpec::Rails
  module IntegrationExampleGroup
    extend ActiveSupport::Concern

    include ActionDispatch::Integration::Runner
    include RSpec::Rails::TestUnitAssertionAdapter
    include ActionDispatch::Assertions
    include Capybara::DSL
    include RSpec::Matchers

    def app
      ::Rails.application
    end

    def last_response
      page
    end

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

    RSpec.configure do |c|
      c.include self, :example_group => { :file_path => /\bspec\/integration\// }
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
forge-cli-0.1.10 lib/forge/spec/support/integration_example_group.rb
forge-cli-0.1.9 lib/forge/spec/support/integration_example_group.rb
forge-cli-0.1.8 lib/forge/spec/support/integration_example_group.rb
forge-cli-0.1.7 lib/forge/spec/support/integration_example_group.rb
forge-cli-0.1.6 lib/forge/spec/support/integration_example_group.rb
forge-cli-0.1.5 lib/forge/spec/support/integration_example_group.rb
forge-cli-0.1.4 lib/forge/spec/support/integration_example_group.rb
forge-cli-0.1.3 lib/forge/spec/support/integration_example_group.rb
forge-cli-0.1.2 lib/forge/spec/support/integration_example_group.rb
forge-cli-0.1.1 lib/forge/spec/support/integration_example_group.rb
forge-cli-0.1.0 lib/forge/spec/support/integration_example_group.rb
forge-cli-0.0.18 lib/forge/spec/support/integration_example_group.rb
forge-cli-0.0.17 lib/forge/spec/support/integration_example_group.rb
forge-cli-0.0.16 lib/forge/spec/support/integration_example_group.rb
forge-cli-0.0.15 lib/forge/spec/support/integration_example_group.rb
forge-cli-0.0.14 lib/forge/spec/support/integration_example_group.rb
forge-cli-0.0.13 lib/forge/spec/support/integration_example_group.rb
forge-cli-0.0.12 lib/forge/spec/support/integration_example_group.rb
forge-cli-0.0.11 lib/forge/spec/support/integration_example_group.rb
forge-cli-0.0.10 lib/forge/spec/support/integration_example_group.rb