summaryrefslogtreecommitdiff
path: root/test/rdoc/test_rdoc_any_method.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rdoc/test_rdoc_any_method.rb')
-rw-r--r--test/rdoc/test_rdoc_any_method.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/rdoc/test_rdoc_any_method.rb b/test/rdoc/test_rdoc_any_method.rb
index fdfb0f3995..20d041bd7e 100644
--- a/test/rdoc/test_rdoc_any_method.rb
+++ b/test/rdoc/test_rdoc_any_method.rb
@@ -89,6 +89,15 @@ method(a, b) { |c, d| ... }
assert_equal '', @c2_a.markup_code
end
+ def test_markup_code_with_variable_expansion
+ m = RDoc::AnyMethod.new nil, 'method'
+ m.parent = @c1
+ m.block_params = '"Hello, #{world}", yield_arg'
+ m.params = 'a'
+
+ assert_equal '(a) { |"Hello, #{world}", yield_arg| ... }', m.param_seq
+ end
+
def test_marshal_dump
@store.path = Dir.tmpdir
top_level = @store.add_file 'file.rb'