Chefspec and chef11

Any one having luck with chefspec and chef-client 11?

I’m getting some funky errors :
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec/monkey_patches/provider.rb:6:in
alias_method': undefined methodbuild_from_file’ for class Class' (NameError) from /opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec/monkey_patches/provider.rb:6:insingletonclass’
from
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec/monkey_patches/provider.rb:5:in
<class:Provider>' from /opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec/monkey_patches/provider.rb:4:inclass:Chef
from
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec/monkey_patches/provider.rb:2:in
<top (required)>' from /opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec.rb:21:inrequire’
from
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec.rb:21:in
<top (required)>' from /opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chef/knife/cookbook_create_specs.rb:1:inrequire’
from
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chef/knife/cookbook_create_specs.rb:1:in
<top (required)>' from /opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chef-11.4.0/lib/chef/knife/core/subcommand_loader.rb:37:inload’
from
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chef-11.4.0/lib/chef/knife/core/subcommand_loader.rb:37:in
`block in load_commands’

thoughts?

ah. apparently known (and fixed) issue:

(but rubygems still has the 0.9 chefspec...)

On Thu, Mar 7, 2013 at 4:51 PM, andi abes andi.abes@gmail.com wrote:

Any one having luck with chefspec and chef-client 11?

I'm getting some funky errors :
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec/monkey_patches/provider.rb:6:in
alias_method': undefined method build_from_file' for class Class' (NameError) from /opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec/monkey_patches/provider.rb:6:in singletonclass'
from
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec/monkey_patches/provider.rb:5:in
<class:Provider>' from /opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec/monkey_patches/provider.rb:4:in class:Chef'
from
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec/monkey_patches/provider.rb:2:in
<top (required)>' from /opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec.rb:21:in require'
from
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec.rb:21:in
<top (required)>' from /opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chef/knife/cookbook_create_specs.rb:1:in require'
from
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chef/knife/cookbook_create_specs.rb:1:in
<top (required)>' from /opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chef-11.4.0/lib/chef/knife/core/subcommand_loader.rb:37:in load'
from
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chef-11.4.0/lib/chef/knife/core/subcommand_loader.rb:37:in
`block in load_commands'

thoughts?

if you are using bundler, you can specify the git repo , or clone the repo
and do a rake install , till the newer version is published in ruby gems

On Thu, Mar 7, 2013 at 4:35 PM, andi abes andi.abes@gmail.com wrote:

ah. apparently known (and fixed) issue:
Error in running spec and using knife in chef 11.2 and chefspec 0.9.0 · Issue #93 · chefspec/chefspec · GitHub
(but rubygems still has the 0.9 chefspec...)

On Thu, Mar 7, 2013 at 4:51 PM, andi abes andi.abes@gmail.com wrote:

Any one having luck with chefspec and chef-client 11?

I'm getting some funky errors :
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec/monkey_patches/provider.rb:6:in
alias_method': undefined method build_from_file' for class Class' (NameError) from /opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec/monkey_patches/provider.rb:6:in singletonclass'
from
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec/monkey_patches/provider.rb:5:in
<class:Provider>' from /opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec/monkey_patches/provider.rb:4:in class:Chef'
from
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec/monkey_patches/provider.rb:2:in
<top (required)>' from /opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec.rb:21:in require'
from
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chefspec.rb:21:in
<top (required)>' from /opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chef/knife/cookbook_create_specs.rb:1:in require'
from
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chefspec-0.9.0/lib/chef/knife/cookbook_create_specs.rb:1:in
<top (required)>' from /opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chef-11.4.0/lib/chef/knife/core/subcommand_loader.rb:37:in load'
from
/opt/dell/crowbar_framework/vendor/bundle/ruby/1.9.1/gems/chef-11.4.0/lib/chef/knife/core/subcommand_loader.rb:37:in
`block in load_commands'

thoughts?