1
0
Fork 0
mirror of https://github.com/varvet/pundit.git synced 2022-11-09 12:30:11 -05:00

Merge pull request #567 from maxcal/spec-metadata

Add type: :policy metadata to RSpec template #566
This commit is contained in:
Linus Marton 2019-01-18 09:54:57 +01:00 committed by GitHub
commit c5bae74aba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
require '<%= File.exists?('spec/rails_helper.rb') ? 'rails_helper' : 'spec_helper' %>'
RSpec.describe <%= class_name %>Policy do
RSpec.describe <%= class_name %>Policy, type: :policy do
let(:user) { User.new }
subject { described_class }