Sha256: 2eed41efa29ffe2250f0fa988bf0c295e70bca22c83f3ca48fd097c914c85bc2

Contents?: true

Size: 500 Bytes

Versions: 56

Compression:

Stored size: 500 Bytes

Contents

#! /usr/bin/env ruby

require 'spec_helper'

describe "Operating System fact" do
  let(:os_hash) { { "name"         => "SomeOS",
                    "family"       => "SomeFamily",
                    "release"      => "1.2.3",
                    "releasemajor" => "1",
                   }
                 }

  it "should use the 'operatingsystem' key from the 'os' fact" do
    Facter.fact("os").stubs(:value).returns(os_hash)
    Facter.fact(:operatingsystem).value.should eq "SomeOS"
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
facter-2.5.7 spec/unit/operatingsystem_spec.rb
facter-2.5.7-x86-mingw32 spec/unit/operatingsystem_spec.rb
facter-2.5.7-x64-mingw32 spec/unit/operatingsystem_spec.rb
facter-2.5.7-universal-darwin spec/unit/operatingsystem_spec.rb
facter-2.5.6-x86-mingw32 spec/unit/operatingsystem_spec.rb
facter-2.5.6-x64-mingw32 spec/unit/operatingsystem_spec.rb
facter-2.5.6-universal-darwin spec/unit/operatingsystem_spec.rb
facter-2.5.6 spec/unit/operatingsystem_spec.rb
facter-2.5.5-x86-mingw32 spec/unit/operatingsystem_spec.rb
facter-2.5.5-x64-mingw32 spec/unit/operatingsystem_spec.rb
facter-2.5.5-universal-darwin spec/unit/operatingsystem_spec.rb
facter-2.5.5 spec/unit/operatingsystem_spec.rb
facter-2.5.4-x86-mingw32 spec/unit/operatingsystem_spec.rb
facter-2.5.4-x64-mingw32 spec/unit/operatingsystem_spec.rb
facter-2.5.4-universal-darwin spec/unit/operatingsystem_spec.rb
facter-2.5.4 spec/unit/operatingsystem_spec.rb
facter-2.5.1 spec/unit/operatingsystem_spec.rb
facter-2.5.1-x86-mingw32 spec/unit/operatingsystem_spec.rb
facter-2.5.1-x64-mingw32 spec/unit/operatingsystem_spec.rb
facter-2.5.1-universal-darwin spec/unit/operatingsystem_spec.rb