Convert admin/webhooks/secrets
spec controller->system (#34109)
This commit is contained in:
parent
7169b270ae
commit
e1f278cdf2
2 changed files with 13 additions and 23 deletions
|
@ -1,23 +0,0 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe Admin::Webhooks::SecretsController do
|
||||
render_views
|
||||
|
||||
let(:user) { Fabricate(:admin_user) }
|
||||
|
||||
before do
|
||||
sign_in user, scope: :user
|
||||
end
|
||||
|
||||
describe 'POST #rotate' do
|
||||
let(:webhook) { Fabricate(:webhook) }
|
||||
|
||||
it 'returns http success' do
|
||||
post :rotate, params: { webhook_id: webhook.id }
|
||||
|
||||
expect(response).to redirect_to(admin_webhook_path(webhook))
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue