Sha256: 3a062789d82cc9e95f53773342b11c0cd4281aac9b65d254f392b174fc970de8

Contents?: true

Size: 846 Bytes

Versions: 19

Compression:

Stored size: 846 Bytes

Contents

begin
  require 'capybara/rspec'
rescue LoadError
end

begin
  require 'capybara/rails'
rescue LoadError
end

if defined?(Capybara)
  RSpec.configure do |c|
    if defined?(Capybara::DSL)
      c.include Capybara::DSL, type: :feature
      c.include Capybara::DSL, type: :system
    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
      c.include Capybara::RSpecMatchers, type: :system
    end

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

Version data entries

19 entries across 18 versions & 4 rubygems

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.1.0/gems/rspec-rails-7.1.0/lib/rspec/rails/vendor/capybara.rb
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/rspec-rails-7.1.0/lib/rspec/rails/vendor/capybara.rb
rspec-rails-7.1.0 lib/rspec/rails/vendor/capybara.rb
rspec-rails-7.0.2 lib/rspec/rails/vendor/capybara.rb
rspec-rails-7.0.1 lib/rspec/rails/vendor/capybara.rb
rspec-rails-7.0.0 lib/rspec/rails/vendor/capybara.rb
rspec-rails-6.1.5 lib/rspec/rails/vendor/capybara.rb
rspec-rails-6.1.4 lib/rspec/rails/vendor/capybara.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/rspec-rails-6.1.3/lib/rspec/rails/vendor/capybara.rb
rspec-rails-6.1.3 lib/rspec/rails/vendor/capybara.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/rspec-rails-6.0.4/lib/rspec/rails/vendor/capybara.rb
rspec-rails-6.1.2 lib/rspec/rails/vendor/capybara.rb
rspec-rails-6.1.1 lib/rspec/rails/vendor/capybara.rb
rspec-rails-6.1.0 lib/rspec/rails/vendor/capybara.rb
rspec-rails-6.0.4 lib/rspec/rails/vendor/capybara.rb
rspec-rails-6.0.3 lib/rspec/rails/vendor/capybara.rb
rspec-rails-6.0.2 lib/rspec/rails/vendor/capybara.rb
rspec-rails-6.0.1 lib/rspec/rails/vendor/capybara.rb
rspec-rails-6.0.0 lib/rspec/rails/vendor/capybara.rb