Sha256: 4be36373d6dbf18690b1b2947728b39440bf141014751e58aa4288f9055834e9

Contents?: true

Size: 517 Bytes

Versions: 4

Compression:

Stored size: 517 Bytes

Contents

# frozen_string_literal: true

require "rails_helper"

module Archangel
  RSpec.describe AssetPolicy, type: :policy do
    subject { described_class.new(user, record) }

    let(:user) { create(:user) }
    let(:record) { create(:asset) }

    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) }

    it { should permit(:wysiwyg) }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
archangel-0.0.5 spec/policies/archangel/asset_policy_spec.rb
archangel-0.0.4 spec/policies/archangel/asset_policy_spec.rb
archangel-0.0.3 spec/policies/archangel/asset_policy_spec.rb
archangel-0.0.2 spec/policies/archangel/asset_policy_spec.rb