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

Version Path
puppet-retrospec-1.6.1 spec/fixtures/fixture_modules/sample_module/spec/unit/facter/fix_installed_spec.rb
puppet-retrospec-1.6.0 spec/fixtures/fixture_modules/sample_module/spec/unit/facter/fix_installed_spec.rb
puppet-retrospec-1.5.0 spec/fixtures/fixture_modules/sample_module/spec/unit/facter/fix_installed_spec.rb
puppet-retrospec-1.4.1 spec/fixtures/fixture_modules/sample_module/spec/unit/facter/fix_installed_spec.rb
puppet-retrospec-1.4.0 spec/fixtures/fixture_modules/sample_module/spec/unit/facter/fix_installed_spec.rb
puppet-retrospec-1.3.2 spec/fixtures/fixture_modules/sample_module/spec/unit/facter/fix_installed_spec.rb
puppet-retrospec-1.3.1 spec/fixtures/fixture_modules/sample_module/spec/unit/facter/fix_installed_spec.rb
puppet-retrospec-1.3.0 spec/fixtures/fixture_modules/sample_module/spec/unit/facter/fix_installed_spec.rb
puppet-retrospec-1.2.1 spec/fixtures/fixture_modules/sample_module/spec/unit/facter/fix_installed_spec.rb
puppet-retrospec-1.2.0 spec/fixtures/fixture_modules/sample_module/spec/unit/facter/fix_installed_spec.rb
puppet-retrospec-1.1.0 spec/fixtures/fixture_modules/sample_module/spec/unit/facter/fix_installed_spec.rb
puppet-retrospec-1.0.0 spec/fixtures/fixture_modules/sample_module/spec/unit/facter/fix_installed_spec.rb
puppet-retrospec-0.12.1 spec/fixtures/fixture_modules/sample_module/spec/unit/facter/fix_installed_spec.rb
puppet-retrospec-0.12.0 spec/fixtures/fixture_modules/sample_module/spec/unit/facter/fix_installed_spec.rb