Sha256: 8dc4c70e840a65af4312991c66cf5cd1d672280601bcadf56e1486ed450e7791

Contents?: true

Size: 653 Bytes

Versions: 11

Compression:

Stored size: 653 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

      module InstanceMethods
        def app
          ::Rails.application
        end

        def last_response
          page
        end
      end

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

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
andrewroth_activeadmin-0.3.4.4 spec/support/integration_example_group.rb
andrewroth_activeadmin-0.3.4.3 spec/support/integration_example_group.rb
andrewroth_activeadmin-0.3.4.2 spec/support/integration_example_group.rb
andrewroth_activeadmin-0.3.4.1 spec/support/integration_example_group.rb
andrewroth_activeadmin-0.3.4 spec/support/integration_example_group.rb
activeadmin-0.3.4 spec/support/integration_example_group.rb
activeadmin-0.3.3 spec/support/integration_example_group.rb
activeadmin-0.3.2 spec/support/integration_example_group.rb
activeadmin-0.3.1 spec/support/integration_example_group.rb
activeadmin-0.3.0 spec/support/integration_example_group.rb
nsm-activeadmin-0.2.2 spec/support/integration_example_group.rb