Skip to content

Commit

Permalink
Additional ruby: source block test (Fix #664)
Browse files Browse the repository at this point in the history
Ensure that line numbers are preserved.
  • Loading branch information
minad committed Sep 18, 2023
1 parent f6c813e commit dc61610
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/core/test_ruby_errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,25 @@ def test_embedded_ruby2
assert_ruby_error NameError,"(__TEMPLATE__):4", source
end

def test_embedded_ruby3
source = %q{
h1 before
ruby:
a = 1
h1 between
ruby:
b = a + 1
unknown_ruby_method
c = 3
h1 third
}

assert_ruby_error NameError,"(__TEMPLATE__):10", source
end

def test_embedded_markdown
source = %q{
markdown:
Expand Down

0 comments on commit dc61610

Please sign in to comment.