Sha256: 14c6c5ffafc358707225c36f0f4321b69d15627b59b61a202fc4cb0447c1ca70

Contents?: true

Size: 423 Bytes

Versions: 31

Compression:

Stored size: 423 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe CfnDsl::CloudFormationTemplate do
  subject(:template) { described_class.new }

  describe '#IAM_ManagedPolicy' do
    it 'supports ManagedPolicyName property' do
      template.IAM_ManagedPolicy(:TestPolicy) do
        ManagedPolicyName 'test-policy'
      end

      expect(template.to_json).to include('"ManagedPolicyName":"test-policy"')
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
cfndsl-1.7.2 spec/aws/iam_managed_policy_spec.rb
cfndsl-1.6.0 spec/aws/iam_managed_policy_spec.rb
cfndsl-1.5.0 spec/aws/iam_managed_policy_spec.rb
cfndsl-1.4.0 spec/aws/iam_managed_policy_spec.rb
cfndsl-1.3.9 spec/aws/iam_managed_policy_spec.rb
cfndsl-1.3.8 spec/aws/iam_managed_policy_spec.rb
cfndsl-1.3.7 spec/aws/iam_managed_policy_spec.rb
cfndsl-1.3.6 spec/aws/iam_managed_policy_spec.rb
cfndsl-1.3.5 spec/aws/iam_managed_policy_spec.rb
cfndsl-1.3.4 spec/aws/iam_managed_policy_spec.rb
cfndsl-1.3.3 spec/aws/iam_managed_policy_spec.rb
cfndsl-1.3.2 spec/aws/iam_managed_policy_spec.rb
cfndsl-1.3.1 spec/aws/iam_managed_policy_spec.rb
cfndsl-1.3.0 spec/aws/iam_managed_policy_spec.rb
cfndsl-1.2.0 spec/aws/iam_managed_policy_spec.rb
cfndsl-1.1.1 spec/aws/iam_managed_policy_spec.rb
cfndsl-1.1.0 spec/aws/iam_managed_policy_spec.rb
cfndsl-1.0.6 spec/aws/iam_managed_policy_spec.rb
cfndsl-1.0.5 spec/aws/iam_managed_policy_spec.rb
cfndsl-1.0.4 spec/aws/iam_managed_policy_spec.rb