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.7 spec/unit/operatingsystemrelease_spec.rb
facter-2.5.7-x86-mingw32 spec/unit/operatingsystemrelease_spec.rb
facter-2.5.7-x64-mingw32 spec/unit/operatingsystemrelease_spec.rb
facter-2.5.7-universal-darwin spec/unit/operatingsystemrelease_spec.rb
facter-2.5.6-x86-mingw32 spec/unit/operatingsystemrelease_spec.rb
facter-2.5.6-x64-mingw32 spec/unit/operatingsystemrelease_spec.rb
facter-2.5.6-universal-darwin spec/unit/operatingsystemrelease_spec.rb
facter-2.5.6 spec/unit/operatingsystemrelease_spec.rb
facter-2.5.5-x86-mingw32 spec/unit/operatingsystemrelease_spec.rb
facter-2.5.5-x64-mingw32 spec/unit/operatingsystemrelease_spec.rb
facter-2.5.5-universal-darwin spec/unit/operatingsystemrelease_spec.rb
facter-2.5.5 spec/unit/operatingsystemrelease_spec.rb
facter-2.5.4-x86-mingw32 spec/unit/operatingsystemrelease_spec.rb
facter-2.5.4-x64-mingw32 spec/unit/operatingsystemrelease_spec.rb
facter-2.5.4-universal-darwin spec/unit/operatingsystemrelease_spec.rb
facter-2.5.4 spec/unit/operatingsystemrelease_spec.rb
facter-2.5.1 spec/unit/operatingsystemrelease_spec.rb
facter-2.5.1-x86-mingw32 spec/unit/operatingsystemrelease_spec.rb
facter-2.5.1-x64-mingw32 spec/unit/operatingsystemrelease_spec.rb
facter-2.5.1-universal-darwin spec/unit/operatingsystemrelease_spec.rb