From 7b6423e955a1c7c20de903590314eb42185ff83f Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Wed, 19 Apr 2017 11:46:38 +0200 Subject: [PATCH] Follow up for issue #839 test - Added RSpec system init support file to create needed newly admin user. --- spec/support/system_init.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 spec/support/system_init.rb diff --git a/spec/support/system_init.rb b/spec/support/system_init.rb new file mode 100644 index 000000000..2ff4deb8c --- /dev/null +++ b/spec/support/system_init.rb @@ -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