Merge 59d1e2c723 into 17427c88fe
This commit is contained in:
commit
3a69fd3117
21 changed files with 87 additions and 11 deletions
|
|
@ -4,14 +4,18 @@ describe 'conference/show.html.haml' do
|
|||
@conference = create(:conference, registration_description: 'Lorem Ipsum Dolor',
|
||||
registration_start_date: Date.today,
|
||||
registration_end_date: Date.tomorrow,
|
||||
description: 'Lorem Ipsum')
|
||||
description: 'Lorem Ipsum',
|
||||
facebook_url: 'http://www.fbexample.com',
|
||||
google_url: 'http://www.google-example.com',
|
||||
media_type: 'YouTube',
|
||||
media_id: 'rtyutut')
|
||||
@conference.call_for_papers = create(:call_for_papers, conference: @conference)
|
||||
assign :conference, @conference
|
||||
render
|
||||
end
|
||||
|
||||
it 'renders program partial' do
|
||||
expect(render).to include("#{@conference.description}")
|
||||
expect(rendered).to include("#{@conference.description}")
|
||||
expect(view).to render_template(partial: 'conference/_program')
|
||||
end
|
||||
|
||||
|
|
@ -21,6 +25,13 @@ describe 'conference/show.html.haml' do
|
|||
end
|
||||
|
||||
it 'renders call_for_papers partial' do
|
||||
expect(render).to include("#{@conference.call_for_papers.description}")
|
||||
expect(rendered).to include("#{@conference.call_for_papers.description}")
|
||||
end
|
||||
|
||||
it 'renders social media partial' do
|
||||
expect(view).to render_template('conference/_social_media')
|
||||
expect(rendered).to include('http://www.fbexample.com')
|
||||
expect(rendered).to include('http://www.google-example.com')
|
||||
expect(rendered).to include('http://youtu.be/rtyutut')
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue