I have both Capybara JS specs and Rack Test specs. I want to have a before :each
block only for the Capybara specs. All Capybara specs are JS.
I tried using before :each, js: :true
, but the specs are not marked as JS. I am setting the default driver to webkit, so I don't have to mark each spec as JS.
So, how to run a before :each
on Capybara specs and exclude Rack Test specs?