Sha256: 12641f84fe329ef1f4d2effd02ef7d38e1ef836944107d6b6c93474106e81b5a

Contents?: true

Size: 720 Bytes

Versions: 83

Compression:

Stored size: 720 Bytes

Contents

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

module RSpec
  module 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
end

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
tenon-1.1.8 spec/support/integration_example_group.rb
tenon-1.1.7 spec/support/integration_example_group.rb
tenon-1.1.6 spec/support/integration_example_group.rb
tenon-1.1.5 spec/support/integration_example_group.rb
tenon-1.1.4 spec/support/integration_example_group.rb
tenon-1.1.3 spec/support/integration_example_group.rb
tenon-1.1.2 spec/support/integration_example_group.rb
tenon-1.1.1 spec/support/integration_example_group.rb
tenon-1.0.76 spec/support/integration_example_group.rb
tenon-1.0.75 spec/support/integration_example_group.rb
tenon-1.0.74 spec/support/integration_example_group.rb
tenon-1.0.73 spec/support/integration_example_group.rb
tenon-1.0.72 spec/support/integration_example_group.rb
tenon-1.0.71 spec/support/integration_example_group.rb
tenon-1.0.70 spec/support/integration_example_group.rb
tenon-1.0.69 spec/support/integration_example_group.rb
tenon-1.0.68 spec/support/integration_example_group.rb
tenon-1.0.67 spec/support/integration_example_group.rb
tenon-1.0.66 spec/support/integration_example_group.rb
tenon-1.0.65 spec/support/integration_example_group.rb