diff --git a/spec/ec2_spec.rb b/spec/ec2_spec.rb index 43b5d24..4ea6864 100644 --- a/spec/ec2_spec.rb +++ b/spec/ec2_spec.rb @@ -46,7 +46,7 @@ end it "to have property Tags" do - expect(resource["Properties"]["Tags"]).to eq([{"Key"=>"Name", "Value"=>"ecs-task"}, {"Key"=>"Environment", "Value"=>{"Ref"=>"EnvironmentName"}}, {"Key"=>"EnvironmentType", "Value"=>{"Ref"=>"EnvironmentType"}}, {"Key"=>"CostCenter", "Value"=>"TeamA"}]) + expect(resource["Properties"]["Tags"]).to eq([{"Key"=>"Name", "Value"=>"ecs-task"}, {"Key"=>"Environment", "Value"=>{"Ref"=>"EnvironmentName"}}, {"Key"=>"EnvironmentType", "Value"=>{"Ref"=>"EnvironmentType"}}, {"Key"=>{"Fn::Sub"=>"CostCenter"}, "Value"=>{"Fn::Sub"=>"TeamA"}}]) end end