Merge d2b5ec1770 into 83abc9f71f
This commit is contained in:
commit
304339f9fc
15 changed files with 240 additions and 7 deletions
|
|
@ -135,6 +135,15 @@ describe Admin::ConferencesController do
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe 'GET #custom_domain', blah: true do
|
||||
it 'render custom domain' do
|
||||
get :custom_domain, id: conference.short_title
|
||||
|
||||
expect(response).to render_template :custom_domain
|
||||
expect(response).to be_success
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
shared_examples 'access as organization_admin' do
|
||||
|
|
|
|||
|
|
@ -24,6 +24,20 @@ describe ConferencesController do
|
|||
expect(response).to render_template :show
|
||||
end
|
||||
end
|
||||
|
||||
context 'accessing conference via custom domain' do
|
||||
before do
|
||||
conference.update_attribute(:custom_domain, 'lvh.me')
|
||||
@request.host = 'lvh.me'
|
||||
end
|
||||
|
||||
it 'assigns correct conference' do
|
||||
get :show
|
||||
|
||||
expect(response).to render_template :show
|
||||
expect(assigns(:conference)).to eq conference
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe 'OPTIONS #index' do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue