-
Notifications
You must be signed in to change notification settings - Fork 152
Description
After installation, When trying to run any of the tasks in the rakefile i get the following error message:
sjorsr@puppetmaster ~/packages (master)$ rake spec [ruby-2.3.1p112]
rake aborted!
NoMethodError: undefined method last_comment' for #<Rake::Application:0x00000002185db0> /var/lib/gems/2.3.0/gems/rspec-core-3.1.7/lib/rspec/core/rake_task.rb:104:in
define'
/var/lib/gems/2.3.0/gems/rspec-core-3.1.7/lib/rspec/core/rake_task.rb:80:in initialize' /var/lib/gems/2.3.0/gems/puppetlabs_spec_helper-1.2.2/lib/puppetlabs_spec_helper/rake_tasks.rb:19:in
new'
/var/lib/gems/2.3.0/gems/puppetlabs_spec_helper-1.2.2/lib/puppetlabs_spec_helper/rake_tasks.rb:19:in <top (required)>' /home/sjorsr/packages/Rakefile:4:in
require'
/home/sjorsr/packages/Rakefile:4:in <top (required)>' /var/lib/gems/2.3.0/gems/rake-12.0.0/exe/rake:27:in
<top (required)>'
(See full trace by running task with --trace)
sjorsr@puppetmaster ~/packages (master)$
This seems to be related to the fact that in rake v12 and higher support for last_comment has been dropped, and the error seems to be in at least the puppetlabs_spec_helper. Version of puppetlabs_spec_helper is the latest (1.2.2) after installing the gem bundle, so i'm not exactly clear what'd be causing this.
Alternatively i could update the gemfile to use rake < 10.1, however this would be a stopgap measure at most, since at some point Rake would have to be updated.