Sha256: b0f4ef697df071b96a0eaa674927b7e39a57cc2740430a2dc7325abc2379cdef
Contents?: true
Size: 479 Bytes
Versions: 4
Compression:
Stored size: 479 Bytes
Contents
# frozen_string_literal: true require "rails_helper" module Archangel RSpec.describe PagePolicy, type: :policy do subject { described_class.new(user, record) } let(:user) { create(:user) } let(:record) { create(:page) } it { should permit(:index) } it { should permit(:show) } it { should permit(:create) } it { should permit(:new) } it { should permit(:update) } it { should permit(:edit) } it { should permit(:destroy) } end end
Version data entries
4 entries across 4 versions & 1 rubygems