Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add render allows unicode text name in partials - 馃崳 #24591

Merged
merged 1 commit into from
Apr 17, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions actionview/test/fixtures/test/_馃崳.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
馃崳
4 changes: 4 additions & 0 deletions actionview/test/template/render_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,10 @@ def test_render_partial_with_hyphen
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; " +
Expand Down