fix association for formulaire

This commit is contained in:
Tanguy PATTE 2015-08-17 11:15:04 +02:00
parent 27cfe498ab
commit ae3ffbd780
2 changed files with 2 additions and 0 deletions

View file

@ -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

View file

@ -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