Follow up for issue #839 test - Added RSpec system init support file to create needed newly admin user.
This commit is contained in:
parent
c58cae13bb
commit
7b6423e955
1 changed files with 11 additions and 0 deletions
11
spec/support/system_init.rb
Normal file
11
spec/support/system_init.rb
Normal 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
|
Loading…
Reference in a new issue