Factories - Format project path and code
This commit is contained in:
parent
835be5b1bf
commit
f1c6bd8df3
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue