Add test for conference registration controller show and destroy action

After failed delete, user should be redirected to registration show and not
root.
This commit is contained in:
Aditya Prakash 2016-03-23 11:42:40 +05:30
parent 80a06b99b4
commit 19157ac81d
3 changed files with 96 additions and 2 deletions

View file

@ -106,6 +106,7 @@ Osem::Application.routes.draw do
end
end
# TODO: change conference_registrations to singular resource
resource :conference_registrations, path: 'register'
resources :tickets, only: [:index]
resources :ticket_purchases, only: [:create, :destroy]