Sha256: 70abfe4355614a7ec6c9b05bee70629deae85c9afbc222cf315c824e8bdf67e6
Contents?: true
Size: 682 Bytes
Versions: 2
Compression:
Stored size: 682 Bytes
Contents
require 'rubygems' require 'require_relative' if RUBY_VERSION < '1.9' require_relative 'common' describe Deltacloud::Instance do before do @instance = Deltacloud::Instance.new( :id => 'inst1', :create_image => true, :name => 'Instance', :instance_profile => 'm1-small', :state => 'RUNNING' ) end it 'advertise if can be used to create image' do @instance.can_create_image?.must_equal true @instance.create_image = false @instance.can_create_image?.must_equal false end it 'advertise the current state using is_state?' do @instance.is_running?.must_equal true @instance.is_stopped?.must_equal false end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
deltacloud-core-1.1.3 | tests/drivers/models/instance_test.rb |
deltacloud-core-1.1.2 | tests/drivers/models/instance_test.rb |