Sponsor dashboard added, with sponsor component for splash page

This commit is contained in:
Gopesh Tulsyan 2014-05-26 13:51:03 +05:30
parent 643b8b173a
commit ea119a8158
36 changed files with 549 additions and 12 deletions

View file

@ -1,10 +1,12 @@
require 'spec_helper'
describe 'conference/show.html.haml' do
it 'renders conference details' do
@conference = create(:conference)
@sponsorship_registration = create(:sponsorship_registration)
@conference = @sponsorship_registration.conference
assign :conference, @conference
render
expect(render).to include("#{@conference.title}")
expect(view).to render_template(:partial => "conference/_sponsor")
expect(rendered).to include("#{@sponsorship_registration.sponsorship_level.title}")
end
end