diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-18 08:24:57 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-18 08:24:57 +0000 |
commit | dff59f6c5df7d995d02e8173a8ce42ff9c552e88 (patch) | |
tree | 9f5e5cec85b40b986b3405b913a5c59cb82e53e9 /test/rdoc/test_rdoc_encoding.rb | |
parent | aa233d3f3331c266baabfefc68d9bc2cc2f4fd0b (diff) | |
download | ruby-dff59f6c5df7d995d02e8173a8ce42ff9c552e88.tar.gz |
* lib/rdoc/encoding.rb: Do not remove #! line from document when
setting encoding. This allows ruby executables to be parsed as ruby
files.
* test/rdoc/test_rdoc_encoding.rb: Test for above.
* lib/rdoc/parser.rb: Set the parser file name of ruby executables
correctly.
* test/rdoc/test_rdoc_parser.rb: Test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rdoc/test_rdoc_encoding.rb')
-rw-r--r-- | test/rdoc/test_rdoc_encoding.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rdoc/test_rdoc_encoding.rb b/test/rdoc/test_rdoc_encoding.rb index 8b482b67f2..89277585ec 100644 --- a/test/rdoc/test_rdoc_encoding.rb +++ b/test/rdoc/test_rdoc_encoding.rb @@ -164,7 +164,7 @@ class TestRDocEncoding < RDoc::TestCase RDoc::Encoding.set_encoding s - assert_equal "# more comments", s + assert_equal "#!/bin/ruby\n# more comments", s end def test_class_set_encoding_bad |