Sha256: b448f4b250ac57ed2e30461d75a5918cdc340057a62aa6f507cfc47ddd7c3357
Contents?: true
Size: 696 Bytes
Versions: 29
Compression:
Stored size: 696 Bytes
Contents
begin require 'capybara/rspec' rescue LoadError end begin require 'capybara/rails' rescue LoadError end RSpec.configure do |c| 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 end if defined?(Capybara::DSL) c.include Capybara::DSL, :type => :controller end unless defined?(Capybara::RSpecMatchers) || defined?(Capybara::DSL) if defined?(Capybara) c.include Capybara, :type => :request c.include Capybara, :type => :controller end end end
Version data entries
29 entries across 24 versions & 4 rubygems