Sponsors dashboard
Removed explicit rendering of sponsors
This commit is contained in:
parent
e38a654af1
commit
67dab025a9
9 changed files with 139 additions and 4 deletions
17
spec/views/admin/sponsors/index.html.haml_spec.rb
Normal file
17
spec/views/admin/sponsors/index.html.haml_spec.rb
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'admin/sponsors/index' do
|
||||
it 'renders sponsorships' do
|
||||
@conference = create(:conference)
|
||||
@conference.sponsorship_levels << create(:sponsorship_level, conference: @conference)
|
||||
@conference.sponsors << create(:sponsor, conference: @conference,
|
||||
sponsorship_level: @conference.sponsorship_levels.first
|
||||
)
|
||||
assign :conference, @conference
|
||||
render
|
||||
expect(rendered).to include('Example sponsor')
|
||||
expect(rendered).to include('http://www.example.com')
|
||||
expect(rendered).to include('Lorem Ipsum Dolor')
|
||||
expect(rendered).to include('Platin')
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue