Sha256: 9c49ff00333199bf115c3c988bb03f4c5ec44029b3782ee9e162f6ae12afbd1e
Contents?: true
Size: 611 Bytes
Versions: 25
Compression:
Stored size: 611 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe CfnDsl::ResourceDefinition do subject { CfnDsl::CloudFormationTemplate.new.AutoScalingGroup(:web_servers) } context '#add_tag' do it 'adds a Tag for the resource' do subject.add_tag('role', 'web-server', true) tags = subject.Property(:Tags).value expect(tags).to be_an(Array) tag = tags.pop expect(tag.instance_variable_get('@Key')).to eq('role') expect(tag.instance_variable_get('@Value')).to eq('web-server') expect(tag.instance_variable_get('@PropagateAtLaunch')).to eq(true) end end end
Version data entries
25 entries across 25 versions & 1 rubygems