Failure/Error: post :destroy, :id => organization.id
ActionView::MissingTemplate:
Missing template superadmin/organizations/destroy, application/destroy with {:handlers=>[:erb, :builder], :formats=>[:html], :locale=>[:en, :en]}. Searched in:
* "#"
...when you run a spec test for a controller, and your routes are definitely fine and there shouldn't be a template for the action, you just need to specify a redirect_to or render.The person here - http://stackoverflow.com/questions/4628103/rspec-no-route-matches-error - had this problem too.
Cheers buddy, this had me pretty confused.
ReplyDeleteThank God I found this. It was driving me insane! Thank you!
ReplyDelete