Welcome to mirror list, hosted at ThFree Co, Russian Federation.

policy_helpers.rb « helpers « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3d780eb5fb1c1a85512daa7b30e0a28510ddf75d (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

module PolicyHelpers
  def expect_allowed(*permissions)
    permissions.each { |p| is_expected.to be_allowed(p) }
  end

  def expect_disallowed(*permissions)
    permissions.each { |p| is_expected.not_to be_allowed(p) }
  end
end