File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 55
66require "bundler"
77Bundler . setup
8- require "aruba/cucumber"
9- require "aruba/config/jruby" if RUBY_ENGINE == "jruby"
8+ # require order matters, capybara needs to be there before aruba for the RSpec shadowing fix to work (see slightly below)
109require "capybara/cucumber"
1110require "capybara/apparition"
11+ require "aruba/cucumber"
12+ require "aruba/config/jruby" if RUBY_ENGINE == "jruby"
1213require "simplecov"
1314
15+ # Small workaround I found for the RSpec/aruba shadowing problem showcased in https://github.com/PragTob/all_conflict/
16+ # It _seems_ to work for now but it's definitely not ideal. Wish this was fixed in Capybara.
17+ Aruba ::Api ::Core . include ( Capybara ::RSpecMatcherProxies )
18+
1419# Rack app for Capybara which returns the latest coverage report from Aruba temp project dir
1520coverage_dir = File . expand_path ( "../../tmp/aruba/project/coverage/" , __dir__ )
1621Capybara . app = Rack ::Builder . new do
You can’t perform that action at this time.
0 commit comments