Sha256: ffe9a2b92da61bf96c1b2c1ccb79645414e4fbb7169ee03f393d474de48b2e4b
Contents?: true
Size: 719 Bytes
Versions: 2
Compression:
Stored size: 719 Bytes
Contents
require 'rubygems' require 'require_relative' if RUBY_VERSION < '1.9' require 'minitest/autorun' require_relative 'db_helper.rb' require_relative '../spec_helper.rb' require_relative './../collections/common.rb' describe "Deltacloud::Database::Entity" do before do @provider = Deltacloud::Database::Provider @entity = Deltacloud::Database::Entity @baseModel = CIMI::Model::Base @prov = @provider::lookup end it 'newly created entities have valid ent_properties' do model = @baseModel.new(:id => "/base/42") ent = @entity.retrieve(model) ent.properties = nil ent.exists?.must_equal false ent.save ent = @entity.retrieve(model) ent.exists?.must_equal true end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
deltacloud-core-1.1.3 | tests/cimi/db/entity_test.rb |
deltacloud-core-1.1.2 | tests/cimi/db/entity_test.rb |