Sha256: ddc0733b00ba6d2b9412387a165924b3d3e8131ef3b69ac5cbfb1f79222d4fce
Contents?: true
Size: 1.16 KB
Versions: 2
Compression:
Stored size: 1.16 KB
Contents
require File.expand_path('spec/spec_helper') require 'fog/arubacloud/compute/models/template' describe Fog::ArubaCloud::Compute::Template do include ModelSetup let (:template_class) do class Fog::ArubaCloud::Compute::Template def self.read_identity instance_variable_get('@identity') end end Fog::ArubaCloud::Compute::Template end #let(:service) { Object.new } let(:template) { Fog::ArubaCloud::Compute::Template.new } before :each do Fog.unmock! end it 'should have an unique id' do template_class.read_identity.must_equal(:id) end it 'should have 8 attributes' do template_class.attributes.must_equal([ :id, :name, :description, :enabled, :export_enabled, :identification_code, :product_id, :hypervisor ]) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-arubacloud-0.0.6 | spec/fog/compute/arubacloud/models/template_spec.rb |
fog-arubacloud-0.0.5 | spec/fog/compute/arubacloud/models/template_spec.rb |