Registration Component

This commit is contained in:
Gopesh Tulsyan 2014-05-23 21:21:11 +05:30
parent 643b8b173a
commit 5c9e0a279e
19 changed files with 172 additions and 36 deletions

View file

@ -2,9 +2,16 @@ require 'spec_helper'
describe 'conference/show.html.haml' do
it 'renders conference details' do
@conference = create(:conference)
@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)]
assign :conference, @conference
render
expect(render).to include("#{@conference.title}")
expect(render).to include("#{ @conference.registration_description }")
expect(render).to include('Example Supporter Level')
end
end