We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9eee11a commit 2747b30Copy full SHA for 2747b30
lib/rspec/rails/vendor/capybara.rb
@@ -9,8 +9,10 @@
9
end
10
11
if defined?(Capybara)
12
- require 'rspec/support/version_checker'
13
- RSpec::Support::VersionChecker.new('capybara', Capybara::VERSION, '2.2.0').check_version!
+ require 'rspec/support/comparable_version'
+ unless RSpec::Support::ComparableVersion.new(Capybara::VERSION) >= '2.2.0'
14
+ raise "You are using capybara #{Capybara::VERSION}. RSpec requires >= 2.2.0."
15
+ end
16
17
RSpec.configure do |c|
18
if defined?(Capybara::DSL)
0 commit comments