D'oh!

I tried that and it didn't produce any output.  Should it have?

Thanks,

Trevor

Luke Kanies wrote:
> On Apr 11, 2009, at 8:18 PM, 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'.
> 
> Yeah, um, that doesn't work. :)
> 
> Just execute the file directly:
> 
> ./unit/transaction.rb
> 
> I probably made those rake tasks a long time ago but stopped using  
> them almost immediately.  I find it easier to just execute the files.
> 
>> The same thing also happens if I just type 'rake all'
>>
>> 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
>>
>> Thanks,
>>
>> Trevor
>>
> 
> 

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to