The Puppet Labs Issue Tracker has Moved:

This issue tracker is now in read-only archive mode and automatic ticket export has been disabled. Redmine users will need to create a new JIRA account to file tickets using See the following page for information on filing tickets with JIRA:

Refactor #9276

puppet-vcsrepo testing seems broken for rspec2

Added by Matthaus Owens over 4 years ago. Updated over 3 years ago.

Status:ClosedStart date:08/30/2011
Priority:NormalDue date:
Assignee:-% Done:


Category:vcsrepoSpent time:-
Target version:-
Keywords:vcsrepo 0.1.1 Branch:

We've Moved!

Ticket tracking is now hosted in JIRA:


After cloning the vcsrepo, running rake or running rspec on the spec dir doesn’t succeed in running the tests for vcsrepo.

Running rake gives the following error:

rake aborted!
no such file to load -- spec/rake/spectask

(See full trace by running task with --trace)

while rspec gives the following error:

/Users/matthaus/puppet-vcsrepo/spec/unit/puppet/provider/vcsrepo/bzr_spec.rb:3: undefined method `describe_provider' for main:Object (NoMethodError)
    from /Users/matthaus/.rvm/gems/ruby-1.8.7-p352@testing/gems/rspec-core-2.6.4/lib/rspec/core/configuration.rb:419:in `load'
    from /Users/matthaus/.rvm/gems/ruby-1.8.7-p352@testing/gems/rspec-core-2.6.4/lib/rspec/core/configuration.rb:419:in `load_spec_files'
    from /Users/matthaus/.rvm/gems/ruby-1.8.7-p352@testing/gems/rspec-core-2.6.4/lib/rspec/core/configuration.rb:419:in `map'
    from /Users/matthaus/.rvm/gems/ruby-1.8.7-p352@testing/gems/rspec-core-2.6.4/lib/rspec/core/configuration.rb:419:in `load_spec_files'
    from /Users/matthaus/.rvm/gems/ruby-1.8.7-p352@testing/gems/rspec-core-2.6.4/lib/rspec/core/command_line.rb:18:in `run'
    from /Users/matthaus/.rvm/gems/ruby-1.8.7-p352@testing/gems/rspec-core-2.6.4/lib/rspec/core/runner.rb:80:in `run_in_process'
    from /Users/matthaus/.rvm/gems/ruby-1.8.7-p352@testing/gems/rspec-core-2.6.4/lib/rspec/core/runner.rb:69:in `run'
    from /Users/matthaus/.rvm/gems/ruby-1.8.7-p352@testing/gems/rspec-core-2.6.4/lib/rspec/core/runner.rb:11:in `autorun'
    from /Users/matthaus/.rvm/gems/ruby-1.8.7-p352@testing/bin/rspec:19

Some googling indicates these errors may be due to not using rspec of about 1.29, but since rspec is at 2.6 today, it makes sense to update the tests and the framework (whether rake or autotest) to use rspec2.


#1 Updated by Matthaus Owens almost 4 years ago

  • Assignee deleted (Matthaus Owens)

#2 Updated by Chris Price over 3 years ago

  • Status changed from Accepted to Investigating
  • Assignee set to Chris Price

#3 Updated by Chris Price over 3 years ago

  • Status changed from Investigating to Accepted
  • Assignee deleted (Chris Price)

The specs for this module are using some stuff from rspec1 (Spec::Example::ExampleGroup) that doesn’t seem to work with rspec2. I started hacking to try to get them running with rspec2, but didn’t quite succeed.

#4 Updated by Aaron Stone over 3 years ago

  • Status changed from Accepted to Closed
  • Keywords set to vcsrepo 0.1.1

Fixed in vcsrepo 0.1.1

Also available in: Atom PDF