Sha256: a13f7fcaa10937a05e00f492a0edc1eeb9e1eba272ddcee8fd80d4eda45afb19
Contents?: true
Size: 773 Bytes
Versions: 1
Compression:
Stored size: 773 Bytes
Contents
require 'minitest/autorun' require_relative File.join('..', '..', '..', 'lib', 'deltacloud', 'models', 'base_model.rb') require_relative File.join('..', '..', '..', 'lib', 'deltacloud', 'models', 'instance.rb') describe Instance do before do @instance = 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
deltacloud-core-1.0.2 | tests/drivers/models/instance_test.rb |