1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add render allows unicode text name in partials - 🍣

This commit is contained in:
Vipul A M 2016-04-17 19:18:50 +05:30
parent 3b0a627a94
commit 519035c909
2 changed files with 5 additions and 0 deletions

View file

@ -0,0 +1 @@
🍣

View file

@ -207,6 +207,10 @@ module RenderTestCases
assert_nothing_raised { @view.render(:partial => "test/a-in") }
end
def test_render_partial_with_unicode_text
assert_nothing_raised { @view.render(:partial => "test/🍣") }
end
def test_render_partial_with_invalid_option_as
e = assert_raises(ArgumentError) { @view.render(:partial => "test/partial_only", :as => 'a-in') }
assert_equal "The value (a-in) of the option `as` is not a valid Ruby identifier; " +