diff options
| author | James Turnbull <james@lovedthanlost.net> | 2011-03-11 11:51:43 +1100 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2011-03-11 11:51:43 +1100 |
| commit | d718af449fc30585fcc672861077ec9045a4ef03 (patch) | |
| tree | 4cceaed252736628f219fed28afc2b56a4da543a /spec/unit | |
| parent | 469d2a26a467c50af9f9732d7f98e8a01ecc369f (diff) | |
| download | facter-d718af449fc30585fcc672861077ec9045a4ef03.tar.gz facter-d718af449fc30585fcc672861077ec9045a4ef03.tar.xz facter-d718af449fc30585fcc672861077ec9045a4ef03.zip | |
Fix #6679 - Added Scientific Linux to operatingsystem fact
Thanks to James Goddard for the patch
Diffstat (limited to 'spec/unit')
| -rwxr-xr-x | spec/unit/operatingsystem_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/unit/operatingsystem_spec.rb b/spec/unit/operatingsystem_spec.rb index be83916..73b3649 100755 --- a/spec/unit/operatingsystem_spec.rb +++ b/spec/unit/operatingsystem_spec.rb @@ -9,23 +9,23 @@ describe "Operating System fact" do before do Facter.clear end - + after do Facter.clear end - + it "should default to the kernel name" do Facter.fact(:kernel).stubs(:value).returns("Nutmeg") Facter.fact(:operatingsystem).value.should == "Nutmeg" end - + it "should be Solaris for SunOS" do Facter.fact(:kernel).stubs(:value).returns("SunOS") - + Facter.fact(:operatingsystem).value.should == "Solaris" end - + it "should identify Oracle VM as OVS" do Facter.fact(:kernel).stubs(:value).returns("Linux") @@ -33,7 +33,7 @@ describe "Operating System fact" do FileTest.expects(:exists?).with("/etc/ovs-release").returns true FileTest.expects(:exists?).with("/etc/enterprise-release").returns true - + Facter.fact(:operatingsystem).value.should == "OVS" end end |
