lsegal / yard

YARD is a Ruby Documentation tool. The Y stands for "Yay!"
http://yardoc.org
MIT License
1.95k stars 398 forks source link

test failure: YARD::CLI::Yardoc#run should search for objects and print their documentation #513

Closed ktdreyer closed 12 years ago

ktdreyer commented 12 years ago

On a couple versions of Fedora, I'm seeing this test failure:

  1) YARD::CLI::Yardoc#run should search for objects and print their documentation
     Failure/Error: @yri.run('Foo')
     SystemExit:
       exit
     # /builddir/build/BUILD/rubygem-yard-0.8.0.master/usr/share/gems/gems/yard-0.8.0.master/lib/yard/cli/yri.rb:65:in `exit'
     # /builddir/build/BUILD/rubygem-yard-0.8.0.master/usr/share/gems/gems/yard-0.8.0.master/lib/yard/cli/yri.rb:65:in `run'
     # /builddir/build/BUILD/rubygem-yard-0.8.0.master/usr/share/gems/gems/yard-0.8.0.master/spec/cli/yri_spec.rb:71:in `block (3 levels) in <top (required)>'
    ...

I'm testing yard-0.8.0.master (git f3245c5). Here are the ruby environments I've checked. Fedora 15: ruby 1.8.7 (2011-12-28 patchlevel 357) [i386-linux] Fedora 18: ruby 1.9.3p125 (2012-02-16 revision 34643) [i386-linux]

ktdreyer commented 12 years ago

When I run the test suite in a fresh source tree for the the first time, the test fails. After the test suite runs for the first time, there's a new ".yardoc" directory in the source tree. When I run the test suite again, it will succeed. I can remove the .yardoc directory, and this test fails again.