2017-09-14 16:41:58 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe 'users/description/champs/date.html.haml', type: :view do
|
2018-02-13 17:00:19 +01:00
|
|
|
let(:type_champ) { create(:type_de_champ, type_champ: :date) }
|
2017-09-14 16:41:58 +02:00
|
|
|
|
|
|
|
before do
|
|
|
|
render 'users/description/champs/date.html.haml', champ: champ
|
|
|
|
end
|
|
|
|
|
|
|
|
let!(:champ) { create(:champ, type_de_champ: type_champ, value: "2017-09-19").decorate }
|
|
|
|
|
|
|
|
it 'should render an input for the dossier link' do
|
|
|
|
expect(rendered).to have_css("input[value='2017-09-19']")
|
|
|
|
end
|
|
|
|
end
|