forked from bofh/fetsite
started to migrate themes new wrapper script
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
FactoryBot.define do
|
||||
sequence (:title) {|n| "Wichtige Neuigkeit #{n}"}
|
||||
sequence (:text) {|n| "Wichtiger text #{n}"}
|
||||
sequence (:neuigkeit_text) {|n| "Wichtiger text #{n}"}
|
||||
|
||||
factory :neuigkeit do
|
||||
title
|
||||
text
|
||||
title
|
||||
# sequence (:text) {|n| "Wichtiger text #{n}"}
|
||||
text {generate :neuigkeit_text}
|
||||
|
||||
# text {generate :neuigkeit_text }
|
||||
datum {1.days.ago}
|
||||
association :author, factory: :user
|
||||
|
||||
|
||||
Reference in New Issue
Block a user