Sha256: 54d5510f8b434bfcf180b45736b5b0a39d0193f4ad9048a13dea26abd5c83576

Contents?: true

Size: 905 Bytes

Versions: 23

Compression:

Stored size: 905 Bytes

Contents

begin
  require 'capybara/rspec'
rescue LoadError
end

begin
  require 'capybara/rails'
rescue LoadError
end

if defined?(Capybara)
  require 'rspec/support/version_checker'
  RSpec::Support::VersionChecker.new('capybara', Capybara::VERSION, '2.2.0').check_version!

  RSpec.configure do |c|
    if defined?(Capybara::DSL)
      c.include Capybara::DSL, :type => :feature
    end

    if defined?(Capybara::RSpecMatchers)
      c.include Capybara::RSpecMatchers, :type => :view
      c.include Capybara::RSpecMatchers, :type => :helper
      c.include Capybara::RSpecMatchers, :type => :mailer
      c.include Capybara::RSpecMatchers, :type => :controller
      c.include Capybara::RSpecMatchers, :type => :feature
    end

    unless defined?(Capybara::RSpecMatchers) || defined?(Capybara::DSL)
      c.include Capybara, :type => :request
      c.include Capybara, :type => :controller
    end
  end
end

Version data entries

23 entries across 22 versions & 4 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/vendor/capybara.rb
rspec-rails-3.4.2 lib/rspec/rails/vendor/capybara.rb
rspec-rails-3.4.1 lib/rspec/rails/vendor/capybara.rb
rspec-rails-3.4.0 lib/rspec/rails/vendor/capybara.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/rspec-rails-3.3.3/lib/rspec/rails/vendor/capybara.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/rspec-rails-3.3.2/lib/rspec/rails/vendor/capybara.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/rspec-rails-3.3.2/lib/rspec/rails/vendor/capybara.rb
rspec-rails-3.3.3 lib/rspec/rails/vendor/capybara.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/rspec-rails-3.3.2/lib/rspec/rails/vendor/capybara.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/rspec-rails-3.1.0/lib/rspec/rails/vendor/capybara.rb
rspec-rails-3.3.2 lib/rspec/rails/vendor/capybara.rb
rspec-rails-3.3.1 lib/rspec/rails/vendor/capybara.rb
rspec-rails-3.3.0 lib/rspec/rails/vendor/capybara.rb
rspec-rails-3.2.3 lib/rspec/rails/vendor/capybara.rb
rspec-rails-3.2.2 lib/rspec/rails/vendor/capybara.rb
rspec-rails-3.2.1 lib/rspec/rails/vendor/capybara.rb
rspec-rails-3.2.0 lib/rspec/rails/vendor/capybara.rb
rspec-rails-3.1.0 lib/rspec/rails/vendor/capybara.rb
rspec-rails-3.0.2 lib/rspec/rails/vendor/capybara.rb
rspec-rails-3.0.1 lib/rspec/rails/vendor/capybara.rb