From 45fd9d52a832ebdd5f5a38572c0f39b51c6c0987 Mon Sep 17 00:00:00 2001 From: Earlopain <14981592+Earlopain@users.noreply.github.com> Date: Tue, 27 Feb 2024 16:18:01 +0100 Subject: [PATCH] [RuboCop] Disallow logging in tests Don't want these committed --- .rubocop.yml | 2 ++ test/helpers/link_helper_test.rb | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.rubocop.yml b/.rubocop.yml index 5d3322b6c..94637ecd7 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -87,6 +87,8 @@ Rails/Output: Exclude: - db/seeds.rb - db/fixes/*.rb + Include: + - test/**/*.rb Rails/ReversibleMigration: Enabled: false diff --git a/test/helpers/link_helper_test.rb b/test/helpers/link_helper_test.rb index 8481ca051..936a1a2a4 100644 --- a/test/helpers/link_helper_test.rb +++ b/test/helpers/link_helper_test.rb @@ -36,7 +36,6 @@ class LinkHelperTest < ActionView::TestCase end test "it returns a fontawesome icon if no hostname is found" do - pp favicon_for_link("https://example.com") assert_match("globe", favicon_for_link("https://example.com")) end