Factories - Format project path and code

This commit is contained in:
Robert Speicher 2012-09-25 18:21:04 -04:00
parent 835be5b1bf
commit f1c6bd8df3

View file

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