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:
parent
3b0a627a94
commit
519035c909
2 changed files with 5 additions and 0 deletions
1
actionview/test/fixtures/test/_🍣.erb
vendored
Normal file
1
actionview/test/fixtures/test/_🍣.erb
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
🍣
|
|
@ -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; " +
|
||||
|
|
Loading…
Reference in a new issue