Added description to conference and program segment to splash

removed id from program partial
This commit is contained in:
Gopesh Tulsyan 2014-05-28 14:49:00 +05:30
parent f825599433
commit b3d719829e
6 changed files with 28 additions and 6 deletions

View file

@ -1,10 +1,10 @@
require 'spec_helper'
describe 'conference/show.html.haml' do
it 'renders conference details' do
@conference = create(:conference)
it 'renders program partial' do
@conference = create(:conference, description: 'Lorem Ipsum')
assign :conference, @conference
render
expect(render).to include("#{@conference.title}")
expect(render).to include("#{@conference.description}")
expect(view).to render_template(partial: 'conference/_program')
end
end