Merge branch 'master' into rebased_1530

This commit is contained in:
Shlok Srivastava 2017-08-23 18:58:02 +00:00 committed by GitHub
commit aebdd66034
12 changed files with 90 additions and 24 deletions

View file

@ -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