Sha256: 303851dc4ff46ab2ffc19e879ea16aa37a82a99b49964bd44afe02461ac5a15a

Contents?: true

Size: 665 Bytes

Versions: 8

Compression:

Stored size: 665 Bytes

Contents

require '<%= File.exists?('spec/rails_helper.rb') ? 'rails_helper' : 'spec_helper' %>'

RSpec.describe <%= class_name %>Policy, type: :policy do
  let(:user) { User.new }

  subject { described_class }

  permissions ".scope" do
    pending "add some examples to (or delete) #{__FILE__}"
  end

  permissions :show? do
    pending "add some examples to (or delete) #{__FILE__}"
  end

  permissions :create? do
    pending "add some examples to (or delete) #{__FILE__}"
  end

  permissions :update? do
    pending "add some examples to (or delete) #{__FILE__}"
  end

  permissions :destroy? do
    pending "add some examples to (or delete) #{__FILE__}"
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/pundit-2.2.0/lib/generators/rspec/templates/policy_spec.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/pundit-2.2.0/lib/generators/rspec/templates/policy_spec.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/pundit-2.2.0/lib/generators/rspec/templates/policy_spec.rb
pundit-2.3.0 lib/generators/rspec/templates/policy_spec.rb
pundit-2.2.0 lib/generators/rspec/templates/policy_spec.rb
pundit-2.1.1 lib/generators/rspec/templates/policy_spec.rb
pundit-2.1.0 lib/generators/rspec/templates/policy_spec.rb
pundit-2.0.1 lib/generators/rspec/templates/policy_spec.rb