forked from bofh/fetsite
gremium und studien factory und specs
This commit is contained in:
@@ -11,7 +11,10 @@ FactoryGirl.define do
|
||||
c.calentry=FactoryGirl.build(:calentry, typ: 2)
|
||||
|
||||
end
|
||||
|
||||
|
||||
trait :with_meetingtyp do
|
||||
association :meetingtyp, factory: :meetingtyp
|
||||
end
|
||||
# trait :without_calentry do
|
||||
# calentry nil
|
||||
# end
|
||||
|
||||
@@ -15,7 +15,7 @@ FactoryGirl.define do
|
||||
end
|
||||
trait :with_meeting do
|
||||
after(:build) do |n|
|
||||
n.meeting=FactoryGirl.build(:meeting)
|
||||
n.meeting=FactoryGirl.build(:meeting, :with_meetingtyp)
|
||||
|
||||
end
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ FactoryGirl.define do
|
||||
|
||||
factory :other_studium do
|
||||
name "Telecommunication"
|
||||
desc "frueher Telekommungikation"
|
||||
desc "frueher Telekommunikation"
|
||||
zahl "066507"
|
||||
typ "Master"
|
||||
end
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
|
||||
|
||||
Reference in New Issue
Block a user