rosa-build/spec/factories/projects.rb

17 lines
430 B
Ruby
Raw Normal View History

2012-01-30 20:39:34 +00:00
# -*- encoding : utf-8 -*-
FactoryGirl.define do
factory :project do
description { FactoryGirl.generate(:string) }
name { FactoryGirl.generate(:unixname) }
association :owner, :factory => :user
end
factory :group_project, :parent => :project do
association :owner, :factory => :group
end
factory :project_with_commit, :parent => :project do
after(:build) {|project| fill_project project}
end
end