Follow up for issue #839 test - Added RSpec system init support file to create needed newly admin user.

This commit is contained in:
Thorsten Eckel 2017-04-19 11:46:38 +02:00
parent c58cae13bb
commit 7b6423e955

View file

@ -0,0 +1,11 @@
RSpec.configure do |config|
config.before(:suite) do
FactoryGirl.create(:user,
login: 'admin',
firstname: 'Admin',
lastname: 'Admin',
email: 'admin@example.com',
password: 'admin',
roles: [Role.lookup(name: 'Admin')],)
end
end