Added lodging backend
This commit is contained in:
parent
b1c171cd97
commit
4cc039b358
13 changed files with 164 additions and 1 deletions
13
spec/views/lodgings/index.html.haml_spec.rb
Normal file
13
spec/views/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