Skip to content
Snippets Groups Projects
Unverified Commit fd23f502 authored by Claire's avatar Claire Committed by GitHub
Browse files

Fix wrong view being displayed when a webhook fails validation (#25464)

parent c78280a8
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ module Admin
if @webhook.update(resource_params)
redirect_to admin_webhook_path(@webhook)
else
render :show
render :edit
end
end
......
......@@ -82,7 +82,7 @@ describe Admin::WebhooksController do
end.to_not change(webhook, :url)
expect(response).to have_http_status(:success)
expect(response).to render_template(:show)
expect(response).to render_template(:edit)
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment