Unfortunately, I've got the latest. I've used gems to install all of the gems where possible since Fedora is notorious for having out of date stuff.
$ spec -v rspec 1.2.2 Trevor Luke Kanies wrote: > On Apr 12, 2009, at 10:17 AM, Trevor Vaughan wrote: > >> I just started using 'spec' directly. That error happens no matter >> what I try. I've tried 'rake >> unit' and 'rake unit/transaction' with the same result. >> >> I then had to comment out the line in spec_helper.rb that includes >> the monkey patches to get it >> working just by running 'spec' but it seems to be working now...I >> think. > > If that's your problem, you're probably running the wrong version of > rspec. I think we require 1.2.2 now; just use gems to upgrade. > >> Trevor >> >> Brice Figureau wrote: >>> On 12/04/09 3:18, Trevor Vaughan wrote: >>>> I've been trying to delve into the rspec tests but am getting >>>> nowhere fast. >>>> >>>> Does anyone have any information regarding this error? >>>> >>>> I'm just 'cd'ing to spec and running 'rake unit:unit/transaction.rb' >>>> which shows up as a valid target using 'rake -T'. >>> try: >>> rake unit/transaction >>> >>>> The same thing also happens if I just type 'rake all' >>> If you just use 'rake' in spec/ it should work (at least it works >>> here). >>> >>>> Everything that it's looking for *seems* to be there. >>>> >>>> (in /home/peiriannydd/Puppet/puppet/spec) >>>> ** Invoke unit:unit/transaction.rb (first_time) >>>> ** Execute unit:unit/transaction.rb >>>> /usr/lib/ruby/gems/1.8/gems/rspec-1.2.2/lib/spec/runner/options.rb: >>>> 237:in >>>> `files_to_load': File or directory not found: transaction >>>> (RuntimeError) >>>> from >>>> /usr/lib/ruby/gems/1.8/gems/rspec-1.2.2/lib/spec/runner/options.rb: >>>> 229:in >>>> `each' >>>> from >>>> /usr/lib/ruby/gems/1.8/gems/rspec-1.2.2/lib/spec/runner/options.rb: >>>> 229:in >>>> `files_to_load' >>>> from >>>> /usr/lib/ruby/gems/1.8/gems/rspec-1.2.2/lib/spec/runner/options.rb: >>>> 97:in >>>> `run_examples' >>>> from >>>> /usr/lib/ruby/gems/1.8/gems/rspec-1.2.2/lib/spec/runner/ >>>> command_line.rb:9:in >>>> `run' >>>> from /usr/lib/ruby/gems/1.8/gems/rspec-1.2.2/bin/spec:4 >>>> rake aborted! >>>> Command /usr/bin/ruby >>>> -I"/home/peiriannydd/Puppet/puppet/spec/../lib:/home/peiriannydd/ >>>> Puppet/puppet/spec/../test/lib:/home/peiriannydd/Puppet/puppet/ >>>> spec/lib" >>>> "/usr/lib/ruby/gems/1.8/gems/rspec-1.2.2/bin/spec" "transaction" >>>> --options spec.opts failed >>>> /usr/lib/ruby/gems/1.8/gems/rspec-1.2.2/lib/spec/rake/spectask.rb: >>>> 174:in >>>> `define' >>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1087:in `verbose' >>>> /usr/lib/ruby/gems/1.8/gems/rspec-1.2.2/lib/spec/rake/spectask.rb: >>>> 150:in >>>> `define' >>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:616:in `call' >>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:616:in `execute' >>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:611:in `each' >>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:611:in `execute' >>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:577:in >>>> `invoke_with_call_chain' >>>> /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' >>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:570:in >>>> `invoke_with_call_chain' >>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:563:in `invoke' >>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2026:in >>>> `invoke_task' >>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2004:in >>>> `top_level' >>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2004:in `each' >>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2004:in >>>> `top_level' >>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2043:in >>>> `standard_exception_handling' >>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1998:in >>>> `top_level' >>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1976:in `run' >>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2043:in >>>> `standard_exception_handling' >>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1973:in `run' >>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/bin/rake:31 >>>> /usr/bin/rake:19:in `load' >>>> /usr/bin/rake:19 >>> Hum, you're using rake 0.8.4, I'm with rake 0.9.1 > >
signature.asc
Description: OpenPGP digital signature
