2015-08-10 11:05:06 +02:00
|
|
|
module FeatureHelpers
|
|
|
|
def login_admin
|
2015-08-13 15:55:19 +02:00
|
|
|
user = create :user
|
2015-08-10 11:05:06 +02:00
|
|
|
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
|
2015-08-20 17:30:17 +02:00
|
|
|
end
|