[Fix #197] Show the motivation on a dossier’s details
This commit is contained in:
parent
12740b4a3e
commit
88267a990d
3 changed files with 19 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'backoffice/dossiers/show.html.haml', type: :view do
|
||||
let!(:dossier) { create(:dossier, :with_entreprise, state: state) }
|
||||
let(:state) { 'draft' }
|
||||
let!(:dossier) { create(:dossier, :with_entreprise, state: state, motivation: "Motivation de décision") }
|
||||
let(:state) { 'closed' }
|
||||
let(:dossier_id) { dossier.id }
|
||||
let(:gestionnaire) { create(:gestionnaire) }
|
||||
|
||||
|
@ -44,5 +44,9 @@ describe 'backoffice/dossiers/show.html.haml', type: :view do
|
|||
expect(rendered).to_not have_css('#maj_infos')
|
||||
end
|
||||
end
|
||||
|
||||
it "shows the motivation" do
|
||||
expect(rendered).to have_content("Motivation de décision")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue