Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Test failures in server_spec with yard 0.8.2.1 #576

Closed
graaff opened this Issue Jul 22, 2012 · 2 comments

Comments

Projects
None yet
3 participants

graaff commented Jul 22, 2012

With yard 0.8.2.1 (and current HEAD) I'm getting spec failures for the server_spec.rb:

  1) YARD::CLI::Server should accept -m, --multi-library
     Failure/Error: @libraries.values.each {|libs| libs.each {|lib| File.should_receive(:exist?).at_least(1).times.with(File.expand_path(lib.yardoc_file)).and_return(true) } }
       (<File (class)>).exist?("/home/graaff/playground/github-clones/yard/.yardoc")
           expected: 1 time
           received: 0 times
     # ./spec/cli/server_spec.rb:35:in `run'

  2) YARD::CLI::Server should accept -c, --cache
     Failure/Error: @libraries.values.each {|libs| libs.each {|lib| File.should_receive(:exist?).at_least(1).times.with(File.expand_path(lib.yardoc_file)).and_return(true) } }
       (<File (class)>).exist?("/home/graaff/playground/github-clones/yard/.yardoc")
           expected: 1 time
           received: 0 times
     # ./spec/cli/server_spec.rb:35:in `run'

  3) YARD::CLI::Server should accept -r, --reload
     Failure/Error: @libraries.values.each {|libs| libs.each {|lib| File.should_receive(:exist?).at_least(1).times.with(File.expand_path(lib.yardoc_file)).and_return(true) } }
       (<File (class)>).exist?("/home/graaff/playground/github-clones/yard/.yardoc")
           expected: 1 time
           received: 0 times
     # ./spec/cli/server_spec.rb:35:in `run'

  4) YARD::CLI::Server should accept -d, --daemon
     Failure/Error: @libraries.values.each {|libs| libs.each {|lib| File.should_receive(:exist?).at_least(1).times.with(File.expand_path(lib.yardoc_file)).and_return(true) } }
       (<File (class)>).exist?("/home/graaff/playground/github-clones/yard/.yardoc")
           expected: 1 time
           received: 0 times
     # ./spec/cli/server_spec.rb:35:in `run'

  5) YARD::CLI::Server should accept -p, --port
     Failure/Error: @libraries.values.each {|libs| libs.each {|lib| File.should_receive(:exist?).at_least(1).times.with(File.expand_path(lib.yardoc_file)).and_return(true) } }
       (<File (class)>).exist?("/home/graaff/playground/github-clones/yard/.yardoc")
           expected: 1 time
           received: 0 times
     # ./spec/cli/server_spec.rb:35:in `run'

  6) YARD::CLI::Server should accept -s, --server
     Failure/Error: @libraries.values.each {|libs| libs.each {|lib| File.should_receive(:exist?).at_least(1).times.with(File.expand_path(lib.yardoc_file)).and_return(true) } }
       (<File (class)>).exist?("/home/graaff/playground/github-clones/yard/.yardoc")
           expected: 1 time
           received: 0 times
     # ./spec/cli/server_spec.rb:35:in `run'

Finished in 0.40057 seconds
20 examples, 6 failures

Contributor

japgolly commented Aug 2, 2012

I can confirm seeing the same test failures. Fixed in pull req #586.

Owner

lsegal commented Aug 6, 2012

I've managed to fix this with a stub rather than a should_receive until #586 is ready to merge.

@lsegal lsegal closed this in c479f5c Aug 6, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment