16 lines
No EOL
414 B
Ruby
16 lines
No EOL
414 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'users/dossiers/index.html.haml', type: :view do
|
|
|
|
describe 'list dossiers' do
|
|
let(:dossier1) { create(:dossier, :with_user).decorate }
|
|
let(:dossier2) { create(:dossier, :with_user).decorate }
|
|
before do
|
|
assign(:dossiers, [dossier1, dossier2])
|
|
render
|
|
end
|
|
subject { rendered }
|
|
it { expect(subject).to have_content(dossier1.nom_projet) }
|
|
end
|
|
|
|
end |