Sha256: 28b9056a7e75aa7ef9679f3bb0d1dec1fb661d6fa5b03c3b5ba0048ef2047b62

Contents?: true

Size: 596 Bytes

Versions: 56

Compression:

Stored size: 596 Bytes

Contents

#! /usr/bin/env ruby

require 'spec_helper'

describe "Operating System Release fact" do
  let(:os_hash) { { "name"    => "SomeOS",
                    "family"  => "SomeFamily",
                    "release" => {
                      "major" => "1",
                      "minor" => "2",
                      "full"  => "1.2.3"
                    }
                  }
                }

  it "should use the 'full' key of the 'release' key from the 'os' fact" do
    Facter.fact("os").stubs(:value).returns(os_hash)
    Facter.fact(:operatingsystemrelease).value.should eq "1.2.3"
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
facter-2.5.0 spec/unit/operatingsystemrelease_spec.rb
facter-2.5.0-x86-mingw32 spec/unit/operatingsystemrelease_spec.rb
facter-2.5.0-x64-mingw32 spec/unit/operatingsystemrelease_spec.rb
facter-2.5.0-universal-darwin spec/unit/operatingsystemrelease_spec.rb
facter-2.4.6 spec/unit/operatingsystemrelease_spec.rb
facter-2.4.6-x86-mingw32 spec/unit/operatingsystemrelease_spec.rb
facter-2.4.6-x64-mingw32 spec/unit/operatingsystemrelease_spec.rb
facter-2.4.6-universal-darwin spec/unit/operatingsystemrelease_spec.rb
facter-2.4.5 spec/unit/operatingsystemrelease_spec.rb
facter-2.4.5-x86-mingw32 spec/unit/operatingsystemrelease_spec.rb
facter-2.4.5-x64-mingw32 spec/unit/operatingsystemrelease_spec.rb
facter-2.4.5-universal-darwin spec/unit/operatingsystemrelease_spec.rb
facter-2.4.4 spec/unit/operatingsystemrelease_spec.rb
facter-2.4.4-x86-mingw32 spec/unit/operatingsystemrelease_spec.rb
facter-2.4.4-x64-mingw32 spec/unit/operatingsystemrelease_spec.rb
facter-2.4.4-universal-darwin spec/unit/operatingsystemrelease_spec.rb
facter-2.4.3 spec/unit/operatingsystemrelease_spec.rb
facter-2.4.3-x86-mingw32 spec/unit/operatingsystemrelease_spec.rb
facter-2.4.3-x64-mingw32 spec/unit/operatingsystemrelease_spec.rb
facter-2.4.3-universal-darwin spec/unit/operatingsystemrelease_spec.rb