Sha256: 2baf9ea80faa8f5ff74fe89807568a283fb86b1fa7768749150ff905ae0447a7
Contents?: true
Size: 650 Bytes
Versions: 2
Compression:
Stored size: 650 Bytes
Contents
require '<%= File.exists?('spec/rails_helper.rb') ? 'rails_helper' : 'spec_helper' %>' RSpec.describe <%= class_name %>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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pundit-2.0.0 | lib/generators/rspec/templates/policy_spec.rb |
pundit-2.0.0.beta1 | lib/generators/rspec/templates/policy_spec.rb |