提交 f10631e1 编写于 作者: J Jeremy Kemper

Be sure to pass through args to to_yaml

上级 5a7f7928
......@@ -93,8 +93,8 @@ def as_str
''.replace(self)
end
def to_yaml
as_str.to_yaml
def to_yaml(*args)
as_str.to_yaml(*args)
end
end
end
......
......@@ -446,7 +446,7 @@ def to_s
end
test 'emits normal string yaml' do
assert_equal 'foo'.to_yaml, 'foo'.html_safe.to_yaml
assert_equal 'foo'.to_yaml, 'foo'.html_safe.to_yaml(:foo => 1)
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册