mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Use RSpec::Core::Version instead of RSpec::Version
because capybara/rspec requires rspec-core, but not rspec.
This commit is contained in:
parent
6d3d8d915a
commit
3a9016fdba
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
if RSpec::Version::STRING.to_f >= 3.0
|
||||
if RSpec::Core::Version::STRING.to_f >= 3.0
|
||||
RSpec.shared_context "Capybara Features", :capybara_feature => true do
|
||||
instance_eval do
|
||||
alias background before
|
||||
|
@ -42,4 +42,4 @@ else
|
|||
end
|
||||
|
||||
RSpec.configuration.include Capybara::Features, :capybara_feature => true
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue