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-19 21:21:06 +05:30
|
|
|
it 'renders conference details' do
|
|
|
|
|
@conference = create(:conference)
|
2014-05-23 21:21:11 +05:30
|
|
|
@conference.registration_description = 'Lorem Ipsum'
|
|
|
|
|
@conference.registration_start_date = Date.today
|
|
|
|
|
@conference.registration_end_date = Date.today + 7.days
|
|
|
|
|
@conference.use_supporter_levels = true
|
|
|
|
|
@conference.save!
|
|
|
|
|
@conference.supporter_levels = [create(:supporter_level)]
|
2014-05-19 21:21:06 +05:30
|
|
|
assign :conference, @conference
|
|
|
|
|
render
|
2014-05-23 21:21:11 +05:30
|
|
|
expect(render).to include("#{ @conference.registration_description }")
|
|
|
|
|
expect(render).to include('Example Supporter Level')
|
2014-05-19 21:21:06 +05:30
|
|
|
end
|
2014-05-19 21:25:42 +05:30
|
|
|
|
2014-05-19 21:21:06 +05:30
|
|
|
end
|