Changed views and routes

used sigular resource for routes
added destroy action in custom domains
made instructions in 'edit/new' and 'show' visually similar
added new action and view for custom domain
This commit is contained in:
shlok007 2017-09-03 15:56:06 +05:30
parent 0494f022d2
commit 7317fc1f9f
10 changed files with 100 additions and 79 deletions

View file

@ -11,7 +11,7 @@ describe Admin::ConferenceDomainsController do
describe 'GET #show' do
it 'redirects to edit if custom domain is not present' do
get :show, conference_id: conference.short_title
expect(response).to redirect_to(admin_conference_conference_domains_edit_path)
expect(response).to redirect_to(edit_admin_conference_domain_path)
end
it 'renders correct template if custom domain is present' do