Sha256: 7c3ea85b7478726b809239c03c3b6921c3357be952b89cdc5e8d3eb3e8870ece
Contents?: true
Size: 610 Bytes
Versions: 14
Compression:
Stored size: 610 Bytes
Contents
require 'spec_helper' require 'facter' describe :fix_installed, :type => :fact do before :all do # perform any action that should be run for the entire test suite end before :each do # perform any action that should be run before every test Facter.clear # This will mock the facts that confine uses to limit facts running under certain conditions allow(Facter.fact(:kernel)).to receive(:value).and_return("windows") end it 'should return a value' do expect(Facter.fact(:fix_installed).value).to eq('value123') #<-- change the value to match your expectation end end
Version data entries
14 entries across 14 versions & 1 rubygems