Commit f1c6bd8df3225d33af4d3d032cc98be86317b348
1 parent
835be5b1
Exists in
master
and in
4 other branches
Factories - Format project path and code
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
spec/factories.rb
@@ -42,8 +42,8 @@ FactoryGirl.define do | @@ -42,8 +42,8 @@ FactoryGirl.define do | ||
42 | 42 | ||
43 | factory :project do | 43 | factory :project do |
44 | sequence(:name) { |n| "project#{n}" } | 44 | sequence(:name) { |n| "project#{n}" } |
45 | - path { name } | ||
46 | - code { name } | 45 | + path { name.downcase.gsub(/\s/, '_') } |
46 | + code { name.downcase.gsub(/\s/, '_') } | ||
47 | owner | 47 | owner |
48 | end | 48 | end |
49 | 49 |