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

Version Path
facter-1.7.6 spec/unit/zonename_spec.rb
facter-1.7.5 spec/unit/zonename_spec.rb
facter-1.7.5.rc2 spec/unit/zonename_spec.rb
facter-1.7.5.rc1 spec/unit/zonename_spec.rb
facter-1.7.4 spec/unit/zonename_spec.rb
facter-1.7.4.rc1 spec/unit/zonename_spec.rb
facter-1.7.3 spec/unit/zonename_spec.rb
facter-1.7.3.rc1 spec/unit/zonename_spec.rb
facter-1.7.2 spec/unit/zonename_spec.rb
facter-1.7.2.rc1 spec/unit/zonename_spec.rb
facter-1.7.1 spec/unit/zonename_spec.rb
facter-1.7.1.rc1 spec/unit/zonename_spec.rb
facter-1.7.0 spec/unit/zonename_spec.rb
facter-1.7.0.rc2 spec/unit/zonename_spec.rb
facter-1.7.0.rc1 spec/unit/zonename_spec.rb