From 55518710865bd7258422807524403c91347519a2 Mon Sep 17 00:00:00 2001 From: hsbt Date: Mon, 27 Nov 2017 10:45:24 +0000 Subject: Merge rdoc-6.0.0.beta4 from upstream. It version applied `frozen_string_literal: true` git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rdoc/test_rdoc_markup_pre_process.rb | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'test/rdoc/test_rdoc_markup_pre_process.rb') diff --git a/test/rdoc/test_rdoc_markup_pre_process.rb b/test/rdoc/test_rdoc_markup_pre_process.rb index be3fdcbef3..3e0e505b0b 100644 --- a/test/rdoc/test_rdoc_markup_pre_process.rb +++ b/test/rdoc/test_rdoc_markup_pre_process.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true require 'rdoc/test_case' @@ -86,8 +86,7 @@ contents of a string. text = "# :main: M\n" out = @pp.handle text - assert_same out, text - assert_equal "#\n", text + assert_equal "#\n", out end def test_handle_comment @@ -96,8 +95,7 @@ contents of a string. out = @pp.handle c - assert_same out, text - assert_equal "#\n", text + assert_equal "#\n", out end def test_handle_markup @@ -129,8 +127,7 @@ contents of a string. out = @pp.handle text, cd - assert_same out, text - assert_equal "# a b c\n", text + assert_equal "# a b c\n", out assert_equal "# a b c\n", cd.metadata[:stuff] end @@ -138,8 +135,7 @@ contents of a string. text = "# :x: y\n" out = @pp.handle text - assert_same out, text - assert_equal "# :x: y\n", text + assert_equal text, out end def test_handle_directive_blankline -- cgit v1.2.3