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