demarches-normaliennes/spec/support/feature_helpers.rb
Tanguy PATTE 3c57643f76 add database cleaner
add factory girl
fix tests
rename dossier_pdf into piece_jointe
rename ref_piece_jointe into content
2015-08-13 15:56:58 +02:00

16 lines
No EOL
278 B
Ruby

module FeatureHelpers
def login_admin
user = create :user
login_as user, scope: :user
user
end
def create_dossier
dossier = FactoryGirl.create(:dossier)
dossier
end
end
RSpec.configure do |config|
config.include FeatureHelpers, type: :feature
end