Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom facts #42

Merged
merged 1 commit into from Oct 24, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion config_defaults.yml
Expand Up @@ -7,7 +7,7 @@ Gemfile:
- gem: rspec-puppet
version: '~> 2.3'
- gem: rspec-puppet-facts
version: '>= 1.5'
version: '>= 1.7'
- gem: puppetlabs_spec_helper
version: '>= 0.8.0'
- gem: puppet-lint
Expand Down
4 changes: 4 additions & 0 deletions moduleroot/spec/spec_helper.rb
Expand Up @@ -9,6 +9,10 @@
require 'rspec-puppet-facts'
include RspecPuppetFacts

# Original fact sources:
add_custom_fact :concat_basedir, '/tmp' # puppetlabs-concat
add_custom_fact :puppetversion, Puppet.version # Facter, but excluded from rspec-puppet-facts

# Workaround for no method in rspec-puppet to pass undef through :params
class Undef
def inspect; 'undef'; end
Expand Down