Everytime I run a spec, even if the spec passes, e.g.
$ rspec spec/integration/view_homepage_spec.rb including Capybara::DSL in the global scope is not recommen
Because including Capybara::DSL in the global scope is not recommended.
Capybara::DSL
This includes many methods globally in the system, which could interfere with your own code.
Here's the correct way:
RSpec.configure do |config| config.include Capybara::DSL, :type => :feature end