Sha256: f54dfa5409f2ab78aa12dfd857cf7c831b5782b6a1cbdbe6d4a5608b950f5493

Contents?: true

Size: 436 Bytes

Versions: 5

Compression:

Stored size: 436 Bytes

Contents

require 'spec_helper'

describe Roark::Aws::Ec2::AmiState do
  it "should return the state of the given ami" do
    image_stub      = stub 'image', :state => :available
    images_stub     = stub :images => { 'ami-12345678' => image_stub }
    connection_stub = stub 'connection', :ec2 => images_stub 
    ami_state = Roark::Aws::Ec2::AmiState.new connection_stub
    expect(ami_state.state('ami-12345678')).to eq(:available)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
roark-0.2.2 spec/aws/ec2/ami_state_spec.rb
roark-0.2.1 spec/aws/ec2/ami_state_spec.rb
roark-0.2.0 spec/aws/ec2/ami_state_spec.rb
roark-0.1.0 spec/aws/ec2/ami_state_spec.rb
roark-0.0.1 spec/aws/ec2/ami_state_spec.rb