ensl.org/spec/factories/issue.rb

9 lines
215 B
Ruby
Raw Normal View History

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