Upgraded to Rails 4

This commit is contained in:
2019-02-24 15:47:27 +01:00
parent f52ec0411d
commit f809f36c06
86 changed files with 732 additions and 662 deletions

View File

@@ -1,10 +1,10 @@
FactoryGirl.define do
FactoryBot.define do
sequence (:title) {|n| "Wichtige Neuigkeit #{n}"}
sequence (:text) {|n| "Wichtiger text #{n}"}
factory :neuigkeit do
title
text
datum 1.days.ago
datum {1.days.ago}
association :author, factory: :user
trait :with_rubrik do
@@ -15,14 +15,14 @@ FactoryGirl.define do
end
trait :with_meeting do
after(:build) do |n|
n.meeting=FactoryGirl.build(:meeting, :with_meetingtyp)
n.meeting=FactoryBot.build(:meeting, :with_meetingtyp)
end
end
trait :unpublished do
datum nil
datum {nil}
end
end