1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/rdoc/generator/darkfish.rb: Silenced warning

* test/rdoc/test_rdoc_rdoc.rb:  ditto

	* lib/rdoc/markup/parser.rb:  Use byteslice when available for
	  performance
	* test/rdoc/test_rdoc_markup_parser.rb:  Test for above
	* lib/rdoc/test_case.rb:  ditto

	* lib/rdoc/parser/ruby.rb:  Fixed bug parsing yield({})
	* test/rdoc/test_rdoc_parser_ruby.rb (end):

	* lib/rdoc/rubygems_hook.rb:  Skip default gems.  Display generator
	  name properly.
	* test/rdoc/test_rdoc_rubygems_hook.rb:  Test for above

	* lib/rdoc/servlet.rb:  Fixed typo.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2012-11-29 23:34:29 +00:00
parent a22bb18e3e
commit 09af9d7f7f
11 changed files with 71 additions and 17 deletions

View file

@ -1684,6 +1684,16 @@ end
assert_equal "def \317\211", omega.text
end
def test_parse_method_or_yield_parameters_hash
util_parser "({})\n"
m = RDoc::AnyMethod.new nil, 'm'
result = @parser.parse_method_or_yield_parameters m
assert_equal '({})', result
end
def test_parse_statements_class_if
util_parser <<-CODE
module Foo