Sha256: a5b705176af30ffd31cb9af3c2a334d83bd05482123f276ebba785cfe5be6f44

Contents?: true

Size: 688 Bytes

Versions: 11

Compression:

Stored size: 688 Bytes

Contents

require 'spec_helper'

describe PostPolicy do
  subject(:policy) { described_class }

  let(:record) { FactoryGirl.create(:post) }

  permissions :index? do
    it_behaves_like 'a super_admin authorizer'
  end

  permissions :show? do
    it_behaves_like 'a super_admin authorizer'
  end

  permissions :new? do
    it_behaves_like 'a super_admin authorizer'
  end

  permissions :create? do
    it_behaves_like 'a super_admin authorizer'
  end

  permissions :edit? do
    it_behaves_like 'a super_admin authorizer'
  end

  permissions :update? do
    it_behaves_like 'a super_admin authorizer'
  end

  permissions :destroy? do
    it_behaves_like 'a super_admin authorizer'
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
g5_authenticatable-0.7.5 spec/policies/post_policy_spec.rb
g5_authenticatable-0.7.5.beta spec/policies/post_policy_spec.rb
g5_authenticatable-0.7.4 spec/policies/post_policy_spec.rb
g5_authenticatable-0.7.4.beta.1 spec/policies/post_policy_spec.rb
g5_authenticatable-0.7.3 spec/policies/post_policy_spec.rb
g5_authenticatable-0.7.2 spec/policies/post_policy_spec.rb
g5_authenticatable-0.7.1 spec/policies/post_policy_spec.rb
g5_authenticatable-0.7.0 spec/policies/post_policy_spec.rb
g5_authenticatable-0.6.0 spec/policies/post_policy_spec.rb
g5_authenticatable-0.5.1 spec/policies/post_policy_spec.rb
g5_authenticatable-0.5.0 spec/policies/post_policy_spec.rb