mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
controller tests for custom domain
This commit is contained in:
parent
f4775f8e6a
commit
66b48be968
1 changed files with 9 additions and 0 deletions
|
|
@ -23,6 +23,15 @@ describe ConferencesController do
|
|||
get :show, id: conference.short_title
|
||||
expect(response).to render_template :show
|
||||
end
|
||||
|
||||
it 'assigns correct conference from a custom domain' do
|
||||
conference.update_attribute(:custom_domain, 'lvh.me')
|
||||
@request.host = 'lvh.me'
|
||||
|
||||
get :show
|
||||
expect(response).to render_template :show
|
||||
expect(assigns(:conference)).to eq conference
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue