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:
parent
0494f022d2
commit
7317fc1f9f
10 changed files with 100 additions and 79 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue