Sha256: b734b865036b14a280b683038f22b9ea5f7e7d84df40ab0584a8ac270c5cb1cf

Contents?: true

Size: 244 Bytes

Versions: 13

Compression:

Stored size: 244 Bytes

Contents

# frozen_string_literal: true

RSpec::Matchers.define :have_key_policy do |policy_name|
  match do |key_type|
    key_type.has_key_policy?(policy_name, @document)
  end

  chain :policy_document do |document|
    @document = document
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
awspec-1.31.0 lib/awspec/matcher/have_key_policy.rb
awspec-1.30.0 lib/awspec/matcher/have_key_policy.rb
awspec-1.29.3 lib/awspec/matcher/have_key_policy.rb
awspec-1.29.2 lib/awspec/matcher/have_key_policy.rb
awspec-1.29.1 lib/awspec/matcher/have_key_policy.rb
awspec-1.29.0 lib/awspec/matcher/have_key_policy.rb
awspec-1.28.2 lib/awspec/matcher/have_key_policy.rb
awspec-1.28.1 lib/awspec/matcher/have_key_policy.rb
awspec-1.28.0 lib/awspec/matcher/have_key_policy.rb
awspec-1.27.1 lib/awspec/matcher/have_key_policy.rb
awspec-1.27.0 lib/awspec/matcher/have_key_policy.rb
awspec-1.26.0 lib/awspec/matcher/have_key_policy.rb
awspec-1.25.2 lib/awspec/matcher/have_key_policy.rb