The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Refactor #9276

puppet-vcsrepo testing seems broken for rspec2

Added by Matthaus Owens about 3 years ago. Updated about 2 years ago.

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

0%

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

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This issue is currently not available for export. If you are experiencing the issue described below, please file a new ticket in JIRA. Once a new ticket has been created, please add a link to it that points back to this Redmine ticket.


Description

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.

History

#1 Updated by Matthaus Owens over 2 years ago

  • Assignee deleted (Matthaus Owens)

#2 Updated by Chris Price about 2 years ago

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

#3 Updated by Chris Price about 2 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 about 2 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