mirror of
https://github.com/philippdieter/puppet-ldapquery.git
synced 2025-10-13 20:56:55 +00:00

Testing the methods inside of the function is a complete pain. This moves the code out to use the PuppetX pattern and adds some basic unit tests that validate the logic.
11 lines
312 B
Ruby
11 lines
312 B
Ruby
require 'puppetlabs_spec_helper/module_spec_helper'
|
|
require 'rspec-puppet'
|
|
|
|
fixture_path = File.expand_path(File.join(__FILE__, '..', 'fixtures'))
|
|
|
|
RSpec.configure do |c|
|
|
c.module_path = File.join(fixture_path, 'modules')
|
|
c.manifest_dir = File.join(fixture_path, 'manifests')
|
|
c.mock_framework = :rspec
|
|
end
|