rootstrap/rails_api_base

View on GitHub
spec/policies/admin/admin_user_policy_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

describe Admin::AdminUserPolicy do
  subject { described_class }

  permissions :update?, :index?, :show?, :create?, :new?, :edit?, :destroy? do
    let(:admin) { create(:admin_user) }

    it 'allows access' do
      expect(subject).to permit(admin, admin)
    end
  end
end