Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix warnings

  • Loading branch information...
commit 14c82766a0cae346cbd98bc8c989d525b1b9b368 1 parent e8c3a12
@drbrain drbrain authored
View
1  lib/rdoc/parser/ruby.rb
@@ -174,6 +174,7 @@ def initialize(top_level, file_name, content, options, stats)
@scanner.exception_on_syntax_error = false
@prev_seek = nil
+ @encoding = nil
@encoding = @options.encoding if Object.const_defined? :Encoding
reset
View
6 test/test_rdoc_class_module.rb
@@ -114,7 +114,7 @@ def test_update_aliases_class
n1 = @xref_data.add_module RDoc::NormalClass, 'N1'
n1_k2 = n1.add_module RDoc::NormalClass, 'N2'
- n1.add_module_alias n1_k2, 'A1', @top_level
+ n1.add_module_alias n1_k2, 'A1', @xref_data
n1_a1_c = n1.constants.find { |c| c.name == 'A1' }
refute_nil n1_a1_c
@@ -138,7 +138,7 @@ def test_update_aliases_module
n1 = @xref_data.add_module RDoc::NormalModule, 'N1'
n1_n2 = n1.add_module RDoc::NormalModule, 'N2'
- n1.add_module_alias n1_n2, 'A1', @top_level
+ n1.add_module_alias n1_n2, 'A1', @xref_data
n1_a1_c = n1.constants.find { |c| c.name == 'A1' }
refute_nil n1_a1_c
@@ -163,7 +163,7 @@ def test_update_aliases_reparent
l1_l2 = l1.add_module RDoc::NormalModule, 'L2'
o1 = @xref_data.add_module RDoc::NormalModule, 'O1'
- o1.add_module_alias l1_l2, 'A1', @top_level
+ o1.add_module_alias l1_l2, 'A1', @xref_data
o1_a1_c = o1.constants.find { |c| c.name == 'A1' }
refute_nil o1_a1_c
View
1  test/test_rdoc_context.rb
@@ -179,7 +179,6 @@ def test_add_module_alias
c3_c4 = @c2.add_module_alias @c2_c3, 'C4', tl
c4 = @c2.find_module_named('C4')
- c2_c3_c4 = @c2_c3.find_module_named('C4')
alias_constant = @c2.constants.first
Please sign in to comment.
Something went wrong with that request. Please try again.