I am trying to test a custom_type using rspec-puppet.
Puppet Code
class vim::ubuntu::config {
custom_multiple_files { \'line_numbe
You'll need to have a copy of your module in your spec/fixtures/module folder. You can also use a symlink to add a reference from spec/fixtures/module to your custom_type_module.
Reference: https://github.com/rodjek/rspec-puppet/issues/84
An example .fixtures.yml file inside the module's root directory:
---
fixtures:
repositories:
concat:
repo: 'git://github.com/puppetlabs/puppetlabs-concat.git'
ref: '1.0.0'
stdlib:
repo: 'git://github.com/puppetlabs/puppetlabs-stdlib.git'
ref: '3.2.0'
symlinks:
keepalived: "#{source_dir}"
Be sure to include "require 'puppetlabs_spec_helper/rake_tasks'" in your Rakefile and adjust aforementioned paths/repos/module names.