spec/policies/admin_user_policy_spec.rb
# frozen_string_literal: true
describe AdminUserPolicy do
subject { described_class }
permissions :update?, :index?, :show?, :create?, :new?, :edit?, :destroy? do
let(:admin) { create(:admin_user) }
let(:user) { create(:user) }
it 'denies access' do
expect(subject).not_to permit(user, admin)
end
end
end