fix association for formulaire
This commit is contained in:
parent
27cfe498ab
commit
ae3ffbd780
2 changed files with 2 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
class Formulaire < ActiveRecord::Base
|
class Formulaire < ActiveRecord::Base
|
||||||
has_many :types_piece_jointe
|
has_many :types_piece_jointe
|
||||||
|
has_many :dossiers
|
||||||
belongs_to :evenement_vie
|
belongs_to :evenement_vie
|
||||||
end
|
end
|
||||||
|
|
|
@ -3,6 +3,7 @@ require 'spec_helper'
|
||||||
describe Formulaire do
|
describe Formulaire do
|
||||||
describe 'assocations' do
|
describe 'assocations' do
|
||||||
it { is_expected.to have_many(:types_piece_jointe) }
|
it { is_expected.to have_many(:types_piece_jointe) }
|
||||||
|
it { is_expected.to have_many(:dossiers) }
|
||||||
it { is_expected.to belong_to(:evenement_vie) }
|
it { is_expected.to belong_to(:evenement_vie) }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue