Sha256: 85457d515c760d5b6ca80d3a8fc6163a99ac5eb73cc92b3d9017c600887dfcbd
Contents?: true
Size: 323 Bytes
Versions: 15
Compression:
Stored size: 323 Bytes
Contents
#!/usr/bin/env rspec require 'spec_helper' require 'facter' describe "zonename fact" do it "should return global zone" do Facter.fact(:kernel).stubs(:value).returns("SunOS") Facter::Util::Resolution.stubs(:exec).with("zonename").returns('global') Facter.fact(:zonename).value.should == "global" end end
Version data entries
15 entries across 15 versions & 1 rubygems