demarches-normaliennes/spec/views/users/dossiers/index.html.haml_spec.rb
2015-09-24 11:17:17 +02:00

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