lsegal/yard — pull request #414 by kou (2011-11-25 14:58:36+00:00)
Title: ensure test directory nonexistent.

The current spec may fail.

% rspec ./spec/registry_store_spec.rb:11
Run filtered including {:locations=>{"./spec/registry_store_spec.rb"=>[11]}}
F

Failures:

1) YARD::RegistryStore#load should load root.dat as full object list if it is a Hash
Failure/Error: @store.load('foo').should == true
received :file? with unexpected arguments
expected: ("foo/checksums")
got: ("foo/objects/root.dat")
# ./lib/yard/registry_store.rb:239:in `block in all_disk_objects'
# ./lib/yard/registry_store.rb:239:in `select'
# ./lib/yard/registry_store.rb:239:in `all_disk_objects'
# ./lib/yard/registry_store.rb:193:in `load_yardoc'
# ./lib/yard/registry_store.rb:90:in `load'
# ./spec/registry_store_spec.rb:16:in `block (3 levels) in '

Finished in 0.2822 seconds
1 example, 1 failure

Failed examples:

rspec ./spec/registry_store_spec.rb:11 # YARD::RegistryStore#load should load root.dat as full object list if it is a Hash

See also http://travis-ci.org/#!/lsegal/yard/builds/50238