Adds lodgings controller and view
This commit is contained in:
parent
029281a9ae
commit
e494192ad2
8 changed files with 111 additions and 1 deletions
13
spec/views/admin/lodgings/index.html.haml_spec.rb
Normal file
13
spec/views/admin/lodgings/index.html.haml_spec.rb
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
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')
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue