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
|
factory :project do
|
||||||
sequence(:name) { |n| "project#{n}" }
|
sequence(:name) { |n| "project#{n}" }
|
||||||
path { name }
|
path { name.downcase.gsub(/\s/, '_') }
|
||||||
code { name }
|
code { name.downcase.gsub(/\s/, '_') }
|
||||||
owner
|
owner
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue