summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-01-14 10:04:48 +0100
committerRémy Coutable <remy@rymai.me>2016-01-14 10:04:48 +0100
commite918493f55eb27cdb779f0bc2d8cbbace8b69aa9 (patch)
tree53aafcde836645b6d96326f696b665182fac6b3c /features
parent33ea09bdf9c05c60438f03ac1fe94b52615cd05e (diff)
downloadgitlab-ce-e918493f55eb27cdb779f0bc2d8cbbace8b69aa9.tar.gz
Fix specs and rubocop warningsfix/private-references
Diffstat (limited to 'features')
-rw-r--r--features/steps/shared/project.rb2
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]