aboutsummaryrefslogtreecommitdiffstats
path: root/spec/policies/boiv_policy_spec.rb
blob: bf09cdcd91e4adb81050499885ebc42508ca00e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
RSpec.describe BoivPolicy, type: :policy do

  permissions :index? do
    it_behaves_like 'permitted policy and same organisation', 'boiv:read-offer'
  end

  permissions :boiv_read_offer? do
    it_behaves_like 'permitted policy and same organisation', 'boiv:read-offer'
  end

  permissions :show? do
    it_behaves_like 'permitted policy and same organisation', 'boiv:read-offer'
  end

end