2016-03-07 16:52:19 -08:00
|
|
|
# frozen_string_literal: true
|
2014-08-14 11:09:21 -07:00
|
|
|
require 'rspec/expectations'
|
2013-02-15 23:10:53 +01:00
|
|
|
require "capybara/spec/spec_helper"
|
2012-11-28 21:02:21 +01:00
|
|
|
|
|
|
|
RSpec.configure do |config|
|
|
|
|
Capybara::SpecHelper.configure(config)
|
2017-01-13 11:59:38 -08:00
|
|
|
config.filter_run_including focus_: true unless ENV['TRAVIS']
|
|
|
|
config.run_all_when_everything_filtered = true
|
2012-11-28 21:02:21 +01:00
|
|
|
end
|
2017-03-28 10:41:49 -07:00
|
|
|
|
|
|
|
def rspec2?
|
|
|
|
!defined?(::RSpec::Expectations::Version) || (Gem::Version.new(RSpec::Expectations::Version::STRING) < Gem::Version.new('3.0'))
|
|
|
|
end
|