ensl.org/spec/factories/issue.rb

9 lines
216 B
Ruby
Raw Normal View History

2015-06-06 23:58:41 +00:00
FactoryGirl.define do
2015-11-07 06:21:31 +00:00
factory :issue do
sequence(:title) { |n| "Issue title #{n}" }
sequence(:text) { |n| "Issue Text #{n}" }
status Issue::STATUS_OPEN
association :author, factory: :user
end
end