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

@@ -4,15 +4,15 @@ describe Thema do
[:text, :title].each do |attr|
it "should not be valid without #{attr}" do
tg=FactoryGirl.build(:themengruppe)
t = FactoryGirl.build(:thema, attr=>nil)
tg=FactoryBot.build(:themengruppe)
t = FactoryBot.build(:thema, attr=>nil)
t.themengruppe=tg
t.should_not be_valid
end
end
it "should not be valid without Themengruppe" do
tg=FactoryGirl.build(:themengruppe)
t = FactoryGirl.build(:thema)
tg=FactoryBot.build(:themengruppe)
t = FactoryBot.build(:thema)
t.should_not be_valid
end