Sha256: 894388f6d7ce38aa17553f76a64279c556006ccb3622c2c4285841968e5329aa

Contents?: true

Size: 1.08 KB

Versions: 2

Compression:

Stored size: 1.08 KB

Contents

#
# Author:: Olle Lundberg (<geek@nerd.sh>)
# Copyright:: Copyright (c) 2013 Opscode, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDIT"Net::HTTP Response"NS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb')
require 'ohai/mixin/cloudstack_metadata'

describe Ohai::Mixin::CloudstackMetadata do
  let(:mixin) {
    metadata_object = Object.new.extend(Ohai::Mixin::CloudstackMetadata)
    metadata_object
  }

  context "#best_api_version" do
    it "returns the string latest" do
      mixin.best_api_version.should == "latest"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ohai-7.6.0.rc.1 spec/unit/mixin/cloudstack_metadata_spec.rb
ohai-7.6.0.rc.0 spec/unit/mixin/cloudstack_metadata_spec.rb