diff options
author | Rémy Coutable <remy@rymai.me> | 2016-01-14 12:04:48 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-01-14 12:04:48 +0300 |
commit | e918493f55eb27cdb779f0bc2d8cbbace8b69aa9 (patch) | |
tree | 53aafcde836645b6d96326f696b665182fac6b3c /features | |
parent | 33ea09bdf9c05c60438f03ac1fe94b52615cd05e (diff) |
Fix specs and rubocop warnings
Diffstat (limited to 'features')
-rw-r--r-- | features/steps/shared/project.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/features/steps/shared/project.rb b/features/steps/shared/project.rb index 5420c451519..d3501b5f5cb 100644 --- a/features/steps/shared/project.rb +++ b/features/steps/shared/project.rb @@ -224,7 +224,7 @@ module SharedProject end def user_owns_project(user_name:, project_name:, visibility: :private) - user = user_exists(user_name, username: user_name.underscore) + user = user_exists(user_name, username: user_name.gsub(/\s/, '').underscore) project = Project.find_by(name: project_name) project ||= create(:empty_project, visibility, name: project_name, namespace: user.namespace) project.team << [user, :master] |