On 4/14/15 7:55 AM, Afroz Hussain wrote: > Sorry Missed to post the installed gems: > > *** LOCAL GEMS *** > > colored (1.2) > cri (2.6.1) > diff-lcs (1.2.5) > faraday (0.8.9) > faraday_middleware (0.9.1) > faraday_middleware-multi_json (0.0.6) > hiera (1.3.4) > hiera-puppet (1.0.0) > json (1.5.5) > json_pure (1.8.1) > kwalify (0.7.2) > log4r (1.1.10) > metaclass (0.0.4) > mocha (1.1.0) > multi_json (1.8.4) > multipart-post (1.2.0) > net-scp (1.2.1) > net-ssh (2.9.1) > passenger (5.0.6) > puppet-lint (1.1.0) > puppet-syntax (2.0.0) > puppetlabs_spec_helper (0.10.1) > r10k (1.4.0) > rack (1.6.0) > rake (10.4.2) > rspec (3.2.0, 2.99.0) > rspec-core (3.2.2, 3.1.7, 2.99.2) > rspec-expectations (3.2.0, 3.1.2, 2.99.2) > rspec-mocks (3.2.1, 3.1.3, 2.99.2) > rspec-puppet (2.0.1, 1.0.1) > rspec-support (3.2.2, 3.1.2) > rubygems-update (2.4.6) > semver (1.0.1) > systemu (2.6.4, 2.5.2) > > > On Wednesday, 25 March 2015 19:05:47 UTC+5:30, Afroz Hussain wrote: > > Hi All, > > I am currently using 3.7.4 version of puppet and tried setting up > rspec(http://rspec-puppet.com/ ) to run some test cases. I have > installed ruby 2.2.0 with the help of rvm but still getting below > errors: > > # cd /etc/puppet/modules/apache/ > # rspec spec/classes/apache_spec.rb > > /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/hooks.rb:512:in > `all_hooks_for': return from proc-closure (LocalJumpError) > from > > /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/hooks.rb:564:in > `process' > from > > /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/flat_map.rb:11:in > `map' > from > > /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/flat_map.rb:11:in > `flat_map' > from > > /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/hooks.rb:563:in > `process' > from > > /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/hooks.rb:429:in > `register_globals' > from > > /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/example_group.rb:394:in > `set_it_up' > from > > /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/example_group.rb:361:in > `subclass' > from > > /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/example_group.rb:253:in > `describe' > from > /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/dsl.rb:43:in > `__send__' > from > /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/dsl.rb:43:in > `describe' > from > /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/dsl.rb:82:in > `__send__' > from > /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/dsl.rb:82:in > `describe' > from /etc/puppet/modules/apache/spec/classes/apache_spec.rb:3 > from > > /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/configuration.rb:1226:in > `load' > from > > /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/configuration.rb:1226:in > `load_spec_files' > from > > /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/configuration.rb:1224:in > `each' > from > > /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/configuration.rb:1224:in > `load_spec_files' > from > > /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/runner.rb:97:in > `setup' > from > > /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/runner.rb:85:in > `run' > from > > /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/runner.rb:70:in > `run' > from > > /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/runner.rb:38:in > `invoke' > from /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/exe/rspec:4 > from /usr/bin/rspec:19:in `load' > > Any help will be appreciated!!! > > Thanks, > Afroz Hussain >
Hi Afroz, You are missing the puppet gem. Suggest creating a Gemfile[1] and using bundler. [1] - https://github.com/ghoneycutt/puppet-module-pam/blob/master/Gemfile Best regards, -g -- Garrett Honeycutt @learnpuppet Puppet Training with LearnPuppet.com Mobile: +1.206.414.8658 -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/552D93D3.5010408%40garretthoneycutt.com. For more options, visit https://groups.google.com/d/optout.