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