Skip to content

Commit 3d7813c

Browse files
committed
Add test_markup_code_with_variable_expansion
1 parent a64226d commit 3d7813c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/test_rdoc_any_method.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,15 @@ def test_markup_code_empty
8989
assert_equal '', @c2_a.markup_code
9090
end
9191

92+
def test_markup_code_with_variable_expansion
93+
m = RDoc::AnyMethod.new nil, 'method'
94+
m.parent = @c1
95+
m.block_params = '"Hello, #{world}", yield_arg'
96+
m.params = 'a'
97+
98+
assert_equal '(a) { |"Hello, #{world}", yield_arg| ... }', m.param_seq
99+
end
100+
92101
def test_marshal_dump
93102
@store.path = Dir.tmpdir
94103
top_level = @store.add_file 'file.rb'

0 commit comments

Comments
 (0)