spec/spec_helper.rb in capybara-2.13.0 vs spec/spec_helper.rb in capybara-2.14.0
- old
+ new
@@ -6,5 +6,9 @@
RSpec.configure do |config|
Capybara::SpecHelper.configure(config)
config.filter_run_including focus_: true unless ENV['TRAVIS']
config.run_all_when_everything_filtered = true
end
+
+def rspec2?
+ !defined?(::RSpec::Expectations::Version) || (Gem::Version.new(RSpec::Expectations::Version::STRING) < Gem::Version.new('3.0'))
+end