Hi Garrett,

Thank you very much for your response.

I am getting below errors after changing 2.1.0 :

ruby -S rspec spec/classes/init_spec.rb
/usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in
 
`require': cannot load such file -- puppet (LoadError)
        from 
/usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in
 
`require'
        from 
/usr/local/rvm/gems/ruby-2.1.0/gems/rspec-puppet-2.0.1/lib/rspec-puppet.rb:1:in 
`<top (required)>'
        from 
/usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:128:in
 
`require'
        from 
/usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:128:in
 
`rescue in require'
        from 
/usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:39:in
 
`require'
        from /etc/puppet/modules/aetos/spec/spec_helper.rb:1:in `<top 
(required)>'

I have reverted the changes since puppet is not working. I have listed out 
installed gems which might give you some hint and I am using puppet-3.6.2 
this time and still getting old errors.

Any help will be appreciated.

Thanks,
Afroz Hussain
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
>
>

-- 
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/56ab6e2e-d334-4870-83f3-231ff518ed23%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to