Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2012-09-26 02:21:04 +0400
committerRobert Speicher <rspeicher@gmail.com>2012-09-27 00:32:23 +0400
commitf1c6bd8df3225d33af4d3d032cc98be86317b348 (patch)
tree0f44131a190501017e64590f93ceb7a32fcc5f9b /spec
parent835be5b1bf25fc0509ef1b1f7f7f2e3a344ff231 (diff)
Factories - Format project path and code
Diffstat (limited to 'spec')
-rw-r--r--spec/factories.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/factories.rb b/spec/factories.rb
index 92790a3fdb7..e11e6d07398 100644
--- a/spec/factories.rb
+++ b/spec/factories.rb
@@ -42,8 +42,8 @@ FactoryGirl.define do
factory :project do
sequence(:name) { |n| "project#{n}" }
- path { name }
- code { name }
+ path { name.downcase.gsub(/\s/, '_') }
+ code { name.downcase.gsub(/\s/, '_') }
owner
end