aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2016-04-17 19:18:50 +0530
committerVipul A M <vipulnsward@gmail.com>2016-04-17 19:18:50 +0530
commit519035c909f6db6c4b11c980e58226a05125928f (patch)
treecdacdb032af59683b36464a6fb1895a39edd1c3c /actionview
parent3b0a627a94cca3a77568703e2053805b5a7ff807 (diff)
downloadrails-519035c909f6db6c4b11c980e58226a05125928f.tar.gz
rails-519035c909f6db6c4b11c980e58226a05125928f.tar.bz2
rails-519035c909f6db6c4b11c980e58226a05125928f.zip
Add render allows unicode text name in partials - 🍣
Diffstat (limited to 'actionview')
-rw-r--r--actionview/test/fixtures/test/_🍣.erb1
-rw-r--r--actionview/test/template/render_test.rb4
2 files changed, 5 insertions, 0 deletions
diff --git a/actionview/test/fixtures/test/_🍣.erb b/actionview/test/fixtures/test/_🍣.erb
new file mode 100644
index 0000000000..4bbe59410a
--- /dev/null
+++ b/actionview/test/fixtures/test/_🍣.erb
@@ -0,0 +1 @@
+🍣
diff --git a/actionview/test/template/render_test.rb b/actionview/test/template/render_test.rb
index b417d1ebfa..ad93236d32 100644
--- a/actionview/test/template/render_test.rb
+++ b/actionview/test/template/render_test.rb
@@ -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; " +