diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2019-02-02 03:53:26 -0700 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2019-02-02 03:53:26 -0700 |
| commit | 32ff1c621446e7a3fd642c8f146e8ef02c51d378 (patch) | |
| tree | f48879a21e1387a053e41cbc978df610befee484 /test/parser_test.rb | |
| parent | 0ada3cd8a935d2880bedab396eb3beffdbc923bd (diff) | |
fix broken tests on JRuby
- JRuby incorrectly drops all indentation in a squiggly heredoc when interpolation is disabled
Diffstat (limited to 'test/parser_test.rb')
| -rw-r--r-- | test/parser_test.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/parser_test.rb b/test/parser_test.rb index 63aa99a2..5200b1eb 100644 --- a/test/parser_test.rb +++ b/test/parser_test.rb @@ -525,7 +525,8 @@ context "Parser" do end test "parse rev remark only" do - input = <<~'EOS' + # NOTE JRuby does not parse this heredoc correctly when defined using 'EOS' + input = <<~EOS Joe Cool :Must start revremark-only line with space EOS @@ -613,7 +614,8 @@ context "Parser" do end EOS - expected = <<~'EOS'.chomp + # NOTE JRuby does not parse this heredoc correctly when defined using 'EOS' + expected = <<~EOS.chomp def names @name.split |
