Sha256: 834bb6f0984781be2ca7babeadd412c53ef31d3d786f05a8e9a63390602bb845

Contents?: true

Size: 715 Bytes

Versions: 4

Compression:

Stored size: 715 Bytes

Contents

require 'spec_helper'
require 'tagenv'

describe Tagenv::Ec2::Tag do
  before do
  end

  it "convert_tag_hash_1" do
    aws_tag_format = [
      { key: 'Name', value: 'app01' },
      { key: 'Stages', value: 'production' }
    ]
    expect_value = { 'Name' => 'app01', 'Stages' => 'production' }
    expect(Ec2::TagUtil.convert_tag_hash(aws_tag_format)).to(eq(expect_value))
  end

  it "convert_tag_hash_2" do
    aws_tag_format = [
      { 'key' => 'Name', 'value' => 'app01' },
      { 'key' => 'Stages', 'value' => 'production' }
    ]
    expect_value = { 'Name' => 'app01', 'Stages' => 'production' }
    expect(Ec2::TagUtil.convert_tag_hash(aws_tag_format)).to(eq(expect_value))
  end

  after do
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tagenv-0.1.5 spec/ec2/tag_util_spec.rb
tagenv-0.1.4 spec/ec2/tag_util_spec.rb
tagenv-0.1.3 spec/ec2/tag_util_spec.rb
tagenv-0.1.2 spec/ec2/tag_util_spec.rb