Sha256: 89e4819855c0e8cf5c539dc23cc1dd497296703048a8ad4fb25266d02549a682
Contents?: true
Size: 483 Bytes
Versions: 4
Compression:
Stored size: 483 Bytes
Contents
# frozen_string_literal: true require "rails_helper" module Archangel RSpec.describe WidgetPolicy, type: :policy do subject { described_class.new(user, record) } let(:user) { create(:user) } let(:record) { create(:widget) } 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