Sha256: 8a5977f307370aec705f38d70614aa1846498076cae085b714add548a96977ed
Contents?: true
Size: 694 Bytes
Versions: 4
Compression:
Stored size: 694 Bytes
Contents
require 'spec_helper' module Awsum describe Ec2::TagParser do subject { Ec2.new('abc', 'xyz') } let(:ec2) { subject } let(:parser) { Awsum::Ec2::TagParser.new(ec2) } let(:result) { parser.parse(fixture('ec2/tags')) } it "should return an array of tags" do result.should be_a(Array) end context "the first tag" do let(:tag) { result.first } { :resource_id => 'ari-f9c22690', :resource_type => 'image', :key => 'name', :value => 'Test' }.each do |key, value| it "should have the correct #{key}" do tag.send(key).should == value end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems