From 54f418d96d456ce4455aac1d97be901d74f1d46c Mon Sep 17 00:00:00 2001 From: Joel Hawksley Date: Tue, 3 Dec 2019 11:42:38 -0700 Subject: [PATCH] appease rubocop --- actionview/lib/action_view/helpers/tag_helper.rb | 1 - actionview/test/template/tag_helper_test.rb | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/actionview/lib/action_view/helpers/tag_helper.rb b/actionview/lib/action_view/helpers/tag_helper.rb index f8a7ad45d37..0944acba220 100644 --- a/actionview/lib/action_view/helpers/tag_helper.rb +++ b/actionview/lib/action_view/helpers/tag_helper.rb @@ -104,7 +104,6 @@ module ActionView end private - def build_tag_values(*args) tag_values = [] diff --git a/actionview/test/template/tag_helper_test.rb b/actionview/test/template/tag_helper_test.rb index 164618b4809..93d923055ca 100644 --- a/actionview/test/template/tag_helper_test.rb +++ b/actionview/test/template/tag_helper_test.rb @@ -256,10 +256,10 @@ class TagHelperTest < ActionView::TestCase str = content_tag("p", "limelight", class: { song: true, play: false }) assert_equal "

limelight

", str - str = content_tag("p", "limelight", class: [{ song: true}, nil, false]) + str = content_tag("p", "limelight", class: [{ song: true }, nil, false]) assert_equal "

limelight

", str - str = content_tag("p", "limelight", class: ["song", { foo: false}]) + str = content_tag("p", "limelight", class: ["song", { foo: false }]) assert_equal "

limelight

", str str = content_tag("p", "limelight", class: { "song": true, "play": true }) @@ -279,10 +279,10 @@ class TagHelperTest < ActionView::TestCase str = tag.p "limelight", class: { song: true, play: false } assert_equal "

limelight

", str - str = tag.p "limelight", class: [{ song: true}, nil, false] + str = tag.p "limelight", class: [{ song: true }, nil, false] assert_equal "

limelight

", str - str = tag.p "limelight", class: ["song", { foo: false}] + str = tag.p "limelight", class: ["song", { foo: false }] assert_equal "

limelight

", str str = tag.p "limelight", class: { "song": true, "play": true }