Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gem::DocManager test suite fails #579

Closed
voxik opened this issue Jul 27, 2012 · 2 comments
Closed

Gem::DocManager test suite fails #579

voxik opened this issue Jul 27, 2012 · 2 comments
Labels
Milestone

Comments

@voxik
Copy link

voxik commented Jul 27, 2012

The following specs fails:

Finished in 5.51 seconds
1602 examples, 10 failures, 8 pending
Failed examples:
rspec ./spec/rubygems/doc_manager_spec.rb:26 # Gem::DocManager.load_yardoc should properly load YARD
rspec ./spec/rubygems/doc_manager_spec.rb:41 # Gem::DocManager#install_ri_yard should pass --quiet to all documentation
rspec ./spec/rubygems/doc_manager_spec.rb:46 # Gem::DocManager#install_ri_yard should pass extra_rdoc_files to documentation
rspec ./spec/rubygems/doc_manager_spec.rb:52 # Gem::DocManager#install_ri_yard should add --backtrace if Gem.configuration.backtrace
rspec ./spec/rubygems/doc_manager_spec.rb:59 # Gem::DocManager#install_ri_yard should add require_paths if there is no .yardopts
rspec ./spec/rubygems/doc_manager_spec.rb:65 # Gem::DocManager#install_ri_yard should add extra_rdoc_files if there is no .yardopts
rspec ./spec/rubygems/doc_manager_spec.rb:72 # Gem::DocManager#install_ri_yard should switch to directory before running command
rspec ./spec/rubygems/doc_manager_spec.rb:79 # Gem::DocManager#install_ri_yard should ensure that directory is switched back at end of command in failure
rspec ./spec/rubygems/doc_manager_spec.rb:91 # Gem::DocManager#install_ri_yard should handle permission errors
rspec ./spec/rubygems/doc_manager_spec.rb:104 # Gem::DocManager#install_rdoc_yard should add -o outdir when generating docs

and this is typical example:

  1) Gem::DocManager.load_yardoc should properly load YARD
     Failure/Error: @spec.has_yardoc = false # no yardoc docs for now
     NoMethodError:
       undefined method `has_yardoc=' for nil:NilClass
     # /builddir/build/BUILD/rubygem-yard-0.8.2.1/usr/share/gems/gems/yard-0.8.2.1/spec/rubygems/doc_manager_spec.rb:16:in `block (2 levels) in <top (required)>'
     # /usr/share/gems/gems/rspec-core-2.8.0/lib/rspec/core/hooks.rb:35:in `instance_eval'
     # /usr/share/gems/gems/rspec-core-2.8.0/lib/rspec/core/hooks.rb:35:in `run_in'
     # /usr/share/gems/gems/rspec-core-2.8.0/lib/rspec/core/hooks.rb:70:in `block in run_all'
     # /usr/share/gems/gems/rspec-core-2.8.0/lib/rspec/core/hooks.rb:70:in `each'
     # /usr/share/gems/gems/rspec-core-2.8.0/lib/rspec/core/hooks.rb:70:in `run_all'
     # /usr/share/gems/gems/rspec-core-2.8.0/lib/rspec/core/hooks.rb:368:in `run_hook'
     # /usr/share/gems/gems/rspec-core-2.8.0/lib/rspec/core/example_group.rb:292:in `block in run_before_each_hooks'
     # /usr/share/gems/gems/rspec-core-2.8.0/lib/rspec/core/example_group.rb:292:in `each'
     # /usr/share/gems/gems/rspec-core-2.8.0/lib/rspec/core/example_group.rb:292:in `run_before_each_hooks'
     # /usr/share/gems/gems/rspec-core-2.8.0/lib/rspec/core/example.rb:217:in `run_before_each'
     # /usr/share/gems/gems/rspec-core-2.8.0/lib/rspec/core/example.rb:79:in `block in run'
     # /usr/share/gems/gems/rspec-core-2.8.0/lib/rspec/core/example.rb:173:in `with_around_hooks'
     # /usr/share/gems/gems/rspec-core-2.8.0/lib/rspec/core/example.rb:77:in `run'
     # /usr/share/gems/gems/rspec-core-2.8.0/lib/rspec/core/example_group.rb:355:in `block in run_examples'
     # /usr/share/gems/gems/rspec-core-2.8.0/lib/rspec/core/example_group.rb:351:in `map'
     # /usr/share/gems/gems/rspec-core-2.8.0/lib/rspec/core/example_group.rb:351:in `run_examples'
     # /usr/share/gems/gems/rspec-core-2.8.0/lib/rspec/core/example_group.rb:337:in `run'
     # /usr/share/gems/gems/rspec-core-2.8.0/lib/rspec/core/example_group.rb:338:in `block in run'
     # /usr/share/gems/gems/rspec-core-2.8.0/lib/rspec/core/example_group.rb:338:in `map'
     # /usr/share/gems/gems/rspec-core-2.8.0/lib/rspec/core/example_group.rb:338:in `run'
     # /usr/share/gems/gems/rspec-core-2.8.0/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run'
     # /usr/share/gems/gems/rspec-core-2.8.0/lib/rspec/core/command_line.rb:28:in `map'
     # /usr/share/gems/gems/rspec-core-2.8.0/lib/rspec/core/command_line.rb:28:in `block in run'
     # /usr/share/gems/gems/rspec-core-2.8.0/lib/rspec/core/reporter.rb:34:in `report'
     # /usr/share/gems/gems/rspec-core-2.8.0/lib/rspec/core/command_line.rb:25:in `run'
     # /usr/share/gems/gems/rspec-core-2.8.0/lib/rspec/core/runner.rb:80:in `run_in_process'
     # /usr/share/gems/gems/rspec-core-2.8.0/lib/rspec/core/runner.rb:69:in `run'
     # /usr/share/gems/gems/rspec-core-2.8.0/lib/rspec/core/runner.rb:10:in `block in autorun'

Is this due to wrong loading order?

@lsegal
Copy link
Owner

lsegal commented Aug 6, 2012

It's not a load order issue, rubygems isn't properly loading the gemspec-- I just made a change to master as to how the spec is loaded in tests, can you see if this works? I can't reproduce an issue on my machine.

@lsegal
Copy link
Owner

lsegal commented Sep 10, 2012

Closing to make way for 0.8.3. Please re-open if this is still happening.

@lsegal lsegal closed this as completed Sep 10, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants