On 3/25/15 2:35 PM, 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
> 
> -- 
> 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
> <mailto:puppet-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/1c47e572-b756-45fe-95e9-bf251d5bfeef%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/1c47e572-b756-45fe-95e9-bf251d5bfeef%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Hi Afroz,

Looks like you are not using ruby v2.2.0 as rspec is looking in
'/usr/lib/ruby/gems/1.8'. Be sure to run `rvm use 2.2.0` before running
rspec and familiarize yourself with bundler.

Also ruby v2.2.0 is not supported by v3.7, so you might want to run
rspec with v2.1.0.

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/5512D32B.7070802%40garretthoneycutt.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to