Initial commit
This commit is contained in:
19
spec/policies/unreleased_appearance_policy_spec.rb
Normal file
19
spec/policies/unreleased_appearance_policy_spec.rb
Normal file
@@ -0,0 +1,19 @@
|
||||
require 'rails_helper'
|
||||
|
||||
describe UnreleasedAppearancePolicy do
|
||||
let(:user_context) { build(:user_context) }
|
||||
|
||||
subject { described_class }
|
||||
|
||||
permissions :create? do
|
||||
it { is_expected.to permit(:create) }
|
||||
end
|
||||
|
||||
permissions :update? do
|
||||
it { is_expected.to permit(:update) }
|
||||
end
|
||||
|
||||
permissions :destroy? do
|
||||
it { is_expected.to permit(:destroy) }
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user