Displaying 3 results from an estimated 3 matches for "contain_packag".
Did you mean:
contain_package
2012 May 25
4
rspec first steps troubles
...nd was playing with
rspec-puppet but the following code gives me errors
require ''spec_helper''
describe ''irqbalance'' do
it { should include_class(''irqbalance'') }
it { should include_class(''irqbalance::data'') }
it { should contain_package(''irqbalance'').with(:ensure => ''installed'') }
end
The errors looks like
NoMethodError:
undefined method `include_class''
NoMethodError:
undefined method `contain_package''
I feel lost.
These methods are supposed to provided by...
2013 Mar 02
0
Problems getting rspec testing working in OSX?
...a:apache loiosh$ rake spec
HEAD is now at 9a06f11 Merge branch ''4.x''
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -S rspec spec/classes/apache_spec.rb --color
FF.F
Failures:
1) apache On a Debian OS with no package name specified
Failure/Error: should contain_package(''httpd'').with( { ''name'' => ''apache2'' } )
NoMethodError:
undefined method `contain_package'' for #<RSpec::Core::ExampleGroup::Nested_1::Nested_1:0x11038d630>
# ./spec/classes/apache_spec.rb:13
2) apache On a RedHat O...
2013 Oct 28
1
Using puppetlabs_spec_helper on Windows 7
...uppet/puppet/lib/puppet/test/test_helper.rb:106:in `each''
# C:/Program Files/Puppet
Labs/Puppet/puppet/lib/puppet/test/test_helper.rb:106:in `after_each_test''
3. I use the concat module. And when running "rake test", I got:
Failure/Error: should contain_package(''nfs-utils'')
Puppet::Error:
$concat_basedir not defined. Try running again with
pluginsync=true on the [master] section of your node''s
''/etc/puppet/puppet.conf''.
Is it a lost cause ? Or someone succeeded to test puppet modul...