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