Sha256: 1082f5d1755ebe8f7f7a86668ceba2fcfa48151ba44e5fdcfa597b86fd034bb9
Contents?: true
Size: 888 Bytes
Versions: 13
Compression:
Stored size: 888 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 => :controller 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, :example_group => { :file_path => c.escaped_path(%w[spec features]) } end unless defined?(Capybara::RSpecMatchers) || defined?(Capybara::DSL) c.include Capybara, :type => :request c.include Capybara, :type => :controller end end end
Version data entries
13 entries across 13 versions & 2 rubygems