require 'spec_helper'
describe 'nuke', type: :class do
let(:facts) do
{
:userprofilepaths_array => ['C:\Users\foobar']
}
end
context 'with no params' do
it { should_not compile }
end
context 'with nuke product' do
let(:params) do
{
:products => {
'Nuke 9' => {
'version' => '9.0V5',
'package_source' => '/abs/path/to/nuke_installer.exe'
}
}
}
end
it { should compile }
end
end
failed: rspec: ./spec/classes/nuke_spec.rb:26: error during compilation: Evaluation Error: Left match operand must result in a String value. Got an Undef Value. at /Users/anthony/repos/puppetdev/nuke/spec/fixtures/modules/nuke/manifests/init.pp:30:7 on node anthonymbpro.local
nuke with nuke product should compile into a catalogue without dependency cycles
Failure/Error:
end
it { should compile }
end
end
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/582c5017-ef74-4ca8-894b-01ad6dcf5d19%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
pdk test unit
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/d0154dac-4b85-4052-a83f-f4df72067694%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.