Sha256: 1671421146814ce8e9db6c63c6c2dbaf40ca255e9eadbdaffe89f6c3b475c099

Contents?: true

Size: 490 Bytes

Versions: 11

Compression:

Stored size: 490 Bytes

Contents

require "action_dispatch"
require "capybara/rails"
require "capybara/dsl"

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

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
activeadmin_addons-1.1.2 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-a5a53c3f2b8f/spec/support/active_admin_request_helpers.rb
activeadmin_addons-1.1.1 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/spec/support/active_admin_request_helpers.rb
activeadmin_addons-1.1.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/spec/support/active_admin_request_helpers.rb
activeadmin_addons-1.0.1 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/spec/support/active_admin_request_helpers.rb
activeadmin_addons-1.0.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/spec/support/active_admin_request_helpers.rb
activeadmin-orac-1.0.0.pre4 spec/support/active_admin_request_helpers.rb
activeadmin-orac-1.0.0 spec/support/active_admin_request_helpers.rb
activeadmin-orac-1.0.0.pre.orac spec/support/active_admin_request_helpers.rb
activeadmin-1.0.0.pre4 spec/support/active_admin_request_helpers.rb
activeadmin-1.0.0.pre3 spec/support/active_admin_request_helpers.rb
activeadmin-1.0.0.pre2 spec/support/active_admin_request_helpers.rb