Sha256: 410bfccad778eec74f0232d4d79ed84fd7f7e8b7e497292c7ca8a0e023eba002

Contents?: true

Size: 723 Bytes

Versions: 1

Compression:

Stored size: 723 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

1 entries across 1 versions & 1 rubygems

Version Path
tagenv-0.1.6 spec/ec2/tag_util_spec.rb