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