Sha256: 83785e160ae2857f759f155d01b430075787e9f73a044a50081fa2e099fea733
Contents?: true
Size: 928 Bytes
Versions: 22
Compression:
Stored size: 928 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 if defined?(ActionPack) && ActionPack::VERSION::STRING >= "5.1" c.include Capybara::DSL, type: :system end 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
22 entries across 20 versions & 4 rubygems