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
|
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