diff --git a/admin/cert_watch/certificates.rb b/admin/cert_watch/certificates.rb index f97ce0d..8708f8e 100644 --- a/admin/cert_watch/certificates.rb +++ b/admin/cert_watch/certificates.rb @@ -1,7 +1,7 @@ require 'cert_watch/views/all' module CertWatch - ActiveAdmin.register Certificate do + ActiveAdmin.register Certificate, as: 'Certificate' do menu priority: 100 actions :index, :new, :create, :show, :edit, :update diff --git a/spec/controllers/admin/cert_watch/certificates_controller_spec.rb b/spec/controllers/admin/cert_watch/certificates_controller_spec.rb index 1f1e8ac..bdab854 100644 --- a/spec/controllers/admin/cert_watch/certificates_controller_spec.rb +++ b/spec/controllers/admin/cert_watch/certificates_controller_spec.rb @@ -1,7 +1,7 @@ require 'rails_helper' module Admin - RSpec.describe CertWatchCertificatesController, type: :controller do + RSpec.describe CertificatesController, type: :controller do describe '#create' do it 'creates custom certificate' do post(:create, certificate: {