Factories - Format project path and code
This commit is contained in:
parent
835be5b1bf
commit
f1c6bd8df3
|
@ -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