2012-01-30 20:39:34 +00:00
|
|
|
# -*- encoding : utf-8 -*-
|
2012-03-29 21:34:22 +01:00
|
|
|
FactoryGirl.define do
|
|
|
|
factory :product do
|
|
|
|
name { FactoryGirl.generate(:string) }
|
|
|
|
association :platform, :factory => :platform
|
2012-11-13 10:31:45 +00:00
|
|
|
association :project, :factory => :project
|
|
|
|
before(:create) { |p|
|
|
|
|
p.project.repo.index.add('test', 'TEST')
|
|
|
|
p.project.repo.index.commit('Test commit')
|
|
|
|
}
|
2012-03-29 21:34:22 +01:00
|
|
|
end
|
2011-11-26 00:54:40 +00:00
|
|
|
end
|