diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-12-12 20:00:50 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-12-12 20:00:50 +0900 |
commit | 2b35826389005bdb0af85a4ebb1f0ec213174d13 (patch) | |
tree | 9cbe8da4d50bd291d1f9cd5b7c6a1bd464470914 /actionview/test/template/tag_helper_test.rb | |
parent | 38b2904f2c9d89868e96edd71c5f3143ca235a88 (diff) | |
download | rails-2b35826389005bdb0af85a4ebb1f0ec213174d13.tar.gz rails-2b35826389005bdb0af85a4ebb1f0ec213174d13.tar.bz2 rails-2b35826389005bdb0af85a4ebb1f0ec213174d13.zip |
Enable `Layout/SpaceBeforeComma` rubocop rule, and fixed more
Follow up of #31390.
Diffstat (limited to 'actionview/test/template/tag_helper_test.rb')
-rw-r--r-- | actionview/test/template/tag_helper_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/test/template/tag_helper_test.rb b/actionview/test/template/tag_helper_test.rb index 8c57803796..f85a6b2f46 100644 --- a/actionview/test/template/tag_helper_test.rb +++ b/actionview/test/template/tag_helper_test.rb @@ -307,8 +307,8 @@ class TagHelperTest < ActionView::TestCase def test_tag_builder_disable_escaping assert_equal '<a href="&"></a>', tag.a(href: "&", escape_attributes: false) - assert_equal '<a href="&">cnt</a>', tag.a(href: "&" , escape_attributes: false) { "cnt" } - assert_equal '<br data-hidden="&">', tag.br("data-hidden": "&" , escape_attributes: false) + assert_equal '<a href="&">cnt</a>', tag.a(href: "&", escape_attributes: false) { "cnt" } + assert_equal '<br data-hidden="&">', tag.br("data-hidden": "&", escape_attributes: false) assert_equal '<a href="&">content</a>', tag.a("content", href: "&", escape_attributes: false) assert_equal '<a href="&">content</a>', tag.a(href: "&", escape_attributes: false) { "content" } end |