Wolf Noble
2013-Mar-02 19:39 UTC
[Puppet Users] Problems getting rspec testing working in OSX?
Hey Gang, Running into a weird error when trying to follow puppetlabs'' blog: https://puppetlabs.com/blog/the-next-generation-of-puppet-module-testing/ I''m running 10.8.2, using default ruby, in an attempt to make my home env a little more sane, (ran into weird rbenv issues at work, which I won''t go into here) The google tells me not a whole lot. Appreciate any help anyone can offer. I had the same error before I installed puppet from gems, suspected that installing the gem might help, but no; no change: http://pastie.org/private/b34pv87osbefarl77j5m5g kiera:apache loiosh$ gem list *** LOCAL GEMS *** diff-lcs (1.2.1) facter (1.6.17) metaclass (0.0.1) mocha (0.13.2) puppet (2.7.20) puppet-lint (0.3.2, 0.1.13) puppet-module (0.3.4) puppetlabs_spec_helper (0.4.1) rake (10.0.3) rspec (2.13.0) rspec-core (2.13.0) rspec-expectations (2.13.0) rspec-mocks (2.13.0) rspec-puppet (0.1.6) kiera:apache loiosh$ pwd /etc/puppet/modules/apache kiera: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 OS with no package name specified Failure/Error: should contain_package(''httpd'').with( { ''name'' => ''httpd'' } ) NoMethodError: undefined method `contain_package'' for #<RSpec::Core::ExampleGroup::Nested_1::Nested_2:0x11038be20> # ./spec/classes/apache_spec.rb:26 3) apache With a package name specified Failure/Error: should contain_package(''httpd'').with( { ''name'' => ''apache'' } ) NoMethodError: undefined method `contain_package'' for #<RSpec::Core::ExampleGroup::Nested_1::Nested_4:0x1103893f0> # ./spec/classes/apache_spec.rb:51 Finished in 0.00107 seconds 4 examples, 3 failures Failed examples: rspec ./spec/classes/apache_spec.rb:12 # apache On a Debian OS with no package name specified rspec ./spec/classes/apache_spec.rb:25 # apache On a RedHat OS with no package name specified rspec ./spec/classes/apache_spec.rb:50 # apache With a package name specified rake aborted! /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -S rspec spec/classes/apache_spec.rb --color failed /Library/Ruby/Gems/1.8/gems/rspec-core-2.13.0/lib/rspec/core/rake_task.rb:156:in `run_task'' /Library/Ruby/Gems/1.8/gems/rspec-core-2.13.0/lib/rspec/core/rake_task.rb:124:in `initialize'' /Library/Ruby/Gems/1.8/gems/rspec-core-2.13.0/lib/rspec/core/rake_task.rb:122:in `send'' /Library/Ruby/Gems/1.8/gems/rspec-core-2.13.0/lib/rspec/core/rake_task.rb:122:in `initialize'' /Library/Ruby/Gems/1.8/gems/puppetlabs_spec_helper-0.4.1/lib/puppetlabs_spec_helper/rake_tasks.rb:102 Tasks: TOP => spec_standalone (See full trace by running task with --trace) kiera:apache loiosh$ ________________________________ This message may contain confidential or privileged information. If you are not the intended recipient, please advise us immediately and delete this message. See http://www.datapipe.com/legal/email_disclaimer/ for further information on confidentiality and the risks of non-secure electronic communication. If you cannot access these links, please notify us by reply message and we will send the contents to you. -- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.