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

Add type: :policy metadata to RSpec template #566

This commit is contained in:
Max Calabrese 2018-11-26 09:29:29 +01:00
parent 290536f71e
commit c6801a8963

View file

@ -1,6 +1,6 @@
require '<%= File.exists?('spec/rails_helper.rb') ? 'rails_helper' : 'spec_helper' %>' 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 } let(:user) { User.new }
subject { described_class } subject { described_class }