diff options
author | Toshimaru <me@toshimaru.net> | 2016-12-09 04:55:21 +0900 |
---|---|---|
committer | Toshimaru <me@toshimaru.net> | 2016-12-09 05:21:11 +0900 |
commit | d9ff835b99ff3c7567ccde9b1379b4deeabee32f (patch) | |
tree | 93b9258440a74ddb9f0978f5b42d8850de28fdfe /actionview/test/template | |
parent | 7407d35c5417b6ef872663936a5880ede8ab711c (diff) | |
download | rails-d9ff835b99ff3c7567ccde9b1379b4deeabee32f.tar.gz rails-d9ff835b99ff3c7567ccde9b1379b4deeabee32f.tar.bz2 rails-d9ff835b99ff3c7567ccde9b1379b4deeabee32f.zip |
split DELEGATION_RESERVED_METHOD_NAMES in half
Diffstat (limited to 'actionview/test/template')
-rw-r--r-- | actionview/test/template/compiled_templates_test.rb | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/actionview/test/template/compiled_templates_test.rb b/actionview/test/template/compiled_templates_test.rb index a24a245442..40ac867b38 100644 --- a/actionview/test/template/compiled_templates_test.rb +++ b/actionview/test/template/compiled_templates_test.rb @@ -14,10 +14,6 @@ class CompiledTemplatesTest < ActiveSupport::TestCase render(file: "test/render_file_with_ruby_keyword_locals", locals: { class: "foo" }) end - def test_template_with_block_variable - assert_equal "foo", render(file: "test/test_template_with_block_variable", locals: { block: "foo" }) - end - def test_template_with_invalid_identifier_locals locals = { foo: "bar", @@ -28,6 +24,16 @@ class CompiledTemplatesTest < ActiveSupport::TestCase assert_equal locals.inspect, render(file: "test/render_file_inspect_local_assigns", locals: locals) end + def test_template_with_delegation_reserved_keywords + locals = { + _: "one", + arg: "two", + args: "three", + block: "four", + } + assert_equal "one two three four", render(file: "test/test_template_with_delegation_reserved_keywords", locals: locals) + end + def test_template_with_unicode_identifier assert_equal "🎂", render(file: "test/render_file_unicode_local", locals: { 🎃: "🎂" }) end |