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