forked from bofh/fetsite
Upgraded to Rails 4
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user