2014-05-19 21:21:06 +05:30
|
|
|
require 'spec_helper'
|
2014-05-19 21:25:42 +05:30
|
|
|
describe 'conference/show.html.haml' do
|
2014-05-30 00:54:45 +05:30
|
|
|
before(:each) do
|
|
|
|
|
@conference = create(:conference, registration_description: 'Lorem Ipsum Dolor',
|
|
|
|
|
registration_start_date: Date.today,
|
|
|
|
|
registration_end_date: Date.tomorrow,
|
|
|
|
|
description: 'Lorem Ipsum')
|
2014-05-19 21:21:06 +05:30
|
|
|
assign :conference, @conference
|
|
|
|
|
render
|
2014-05-30 00:54:45 +05:30
|
|
|
end
|
|
|
|
|
it 'renders program partial' do
|
2014-05-28 14:49:00 +05:30
|
|
|
expect(render).to include("#{@conference.description}")
|
|
|
|
|
expect(view).to render_template(partial: 'conference/_program')
|
2014-05-19 21:21:06 +05:30
|
|
|
end
|
2014-05-28 18:12:45 +05:30
|
|
|
|
|
|
|
|
it 'renders registration partial' do
|
|
|
|
|
expect(rendered).to include("#{@conference.registration_description}")
|
|
|
|
|
expect(view).to render_template(partial: 'conference/_registration')
|
|
|
|
|
end
|
2014-05-19 21:21:06 +05:30
|
|
|
end
|