increase test coverage for meetings

This commit is contained in:
2019-01-05 02:54:50 +01:00
parent 70e415446a
commit 5759ba79e0
8 changed files with 250 additions and 61 deletions

View File

@@ -1,7 +1,8 @@
class Meetingtyp < ActiveRecord::Base
attr_accessible :agendaintern, :desc, :name, :protocolintern, :rubrik_id, :picture
belongs_to :rubrik
validate :rubrik, :presence=>true
validates :rubrik, :presence=>true
validates :name, :presence=>true
has_many :meetings
has_one :calendar, through: :rubrik
has_one :protocol, :class_name=>'Document', :conditions=>{:typ=>10}, :as=>:parent