Permalink
Browse files

Be sure to pass through args to to_yaml

  • Loading branch information...
1 parent eed8a88 commit 40c393cb84206380c76dd2f5429215d32b09bc92 @jeremy jeremy committed Mar 12, 2010
@@ -109,8 +109,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
@@ -501,6 +501,6 @@ 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

0 comments on commit 40c393c

Please sign in to comment.