Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
philicious
@philicious
hi, someone around ?
@svanzoest hey, I am getting chefspec errors with your sysctl 0.6.2 cookbook
undefined method `define_matcher' for ChefSpec:Module
in cookbooks/sysctl/libraries/matchers.rb:
1: if defined?(ChefSpec)
2>> ChefSpec.define_matcher :sysctl_param
chefspec version being 4.0.2
philicious
@philicious
this more sounds like a problem with chefspec version but I'm reporting this because all other cookbooks are fine, and I have/use plenty
Sander van Zoest
@svanzoest
The cookbook requires chefspec 4.1
I highly recommend you running bundle exec rspec when running chefspec
that will ensure that it is using the right version of chefspec as per the Gemfile and Gemfile.lock
philicious
@philicious
@svanzoest thanks ! when forcing v0.6.0 in metadata.rb it works again. 0.6.1 wont either. cant bump chefspec easily without breaking lots of our own specs
Sander van Zoest
@svanzoest
@philicious I added a Guard to support chefspec < 4.1 on master viverae-cookbooks/sysctl@db780b2. I hope it helps https://github.com/viverae-cookbooks/sysctl/blob/master/libraries/matchers.rb
philicious
@philicious
great. thanks! I'll wait for the next release then and use v0.6.0 until then