Issue #9276 has been reported by Matthaus Litteken.

----------------------------------------
Refactor #9276: puppet-vcsrepo testing seems broken for rspec2
https://projects.puppetlabs.com/issues/9276

Author: Matthaus Litteken
Status: Accepted
Priority: Normal
Assignee: Matthaus Litteken
Category: vcsrepo
Target version: 
Keywords: 
Branch: 


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:
<pre>
rake aborted!
no such file to load -- spec/rake/spectask

(See full trace by running task with --trace)
</pre>

while rspec gives the following error:
<pre>/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</pre>

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.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to