2015-09-23 12:04:57 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe 'users/dossiers/index.html.haml', type: :view do
|
|
|
|
|
|
|
|
describe 'list dossiers' do
|
2015-09-24 11:17:17 +02:00
|
|
|
let(:dossier1) { create(:dossier, :with_user).decorate }
|
|
|
|
let(:dossier2) { create(:dossier, :with_user).decorate }
|
2015-09-23 12:04:57 +02:00
|
|
|
before do
|
|
|
|
assign(:dossiers, [dossier1, dossier2])
|
|
|
|
render
|
|
|
|
end
|
|
|
|
subject { rendered }
|
|
|
|
it { expect(subject).to have_content(dossier1.nom_projet) }
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|