Sha256: 146b1019f12e350a871436b589b221e09153644bac9cd033bd31a22780b68910

Contents?: true

Size: 250 Bytes

Versions: 13

Compression:

Stored size: 250 Bytes

Contents

# frozen_string_literal: true

RSpec::Matchers.define :have_inline_policy do |policy_name|
  match do |iam_type|
    iam_type.has_inline_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_inline_policy.rb
awspec-1.30.0 lib/awspec/matcher/have_inline_policy.rb
awspec-1.29.3 lib/awspec/matcher/have_inline_policy.rb
awspec-1.29.2 lib/awspec/matcher/have_inline_policy.rb
awspec-1.29.1 lib/awspec/matcher/have_inline_policy.rb
awspec-1.29.0 lib/awspec/matcher/have_inline_policy.rb
awspec-1.28.2 lib/awspec/matcher/have_inline_policy.rb
awspec-1.28.1 lib/awspec/matcher/have_inline_policy.rb
awspec-1.28.0 lib/awspec/matcher/have_inline_policy.rb
awspec-1.27.1 lib/awspec/matcher/have_inline_policy.rb
awspec-1.27.0 lib/awspec/matcher/have_inline_policy.rb
awspec-1.26.0 lib/awspec/matcher/have_inline_policy.rb
awspec-1.25.2 lib/awspec/matcher/have_inline_policy.rb