mardi 22 décembre 2015

before(:each) for all tests except one

This is part of my spec_helper.rb:

RSpec.configure do |config|

 config.before(:each) do
  login(email, password)
  visit root_url
 end

end

that I need in all of my (20+) tests except one.

Is there a way to avoid that single test to execute the before hook?

Aucun commentaire:

Enregistrer un commentaire