debian-mirror-gitlab/spec/support/helpers/policy_helpers.rb
2019-07-07 11:18:12 +05:30

11 lines
262 B
Ruby

# 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