Added lodging to splash view
This commit is contained in:
parent
4cc039b358
commit
c1063645da
13 changed files with 53 additions and 5 deletions
14
spec/views/admin/lodgings/index.html.haml_spec.rb
Normal file
14
spec/views/admin/lodgings/index.html.haml_spec.rb
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'admin/lodgings/index' do
|
||||
it 'renders lodgings list' do
|
||||
@conference = create(:conference)
|
||||
@conference.venue = create(:venue)
|
||||
@conference.venue.lodgings << create(:lodging, venue: @conference.venue)
|
||||
assign :venue, @conference.venue
|
||||
render
|
||||
expect(rendered).to include('Example Hotel')
|
||||
expect(rendered).to include('Lorem Ipsum Dolor')
|
||||
expect(rendered).to include('http://www.example.com')
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue