From 081e33c4ab9e474982abf6af37d2a8dba3aa6abe Mon Sep 17 00:00:00 2001 From: Judah Meek Date: Fri, 12 Apr 2024 20:26:42 -0500 Subject: [PATCH] linting --- test/dummy/config/initializers/backtrace_silencers.rb | 1 + test/dummy/config/initializers/inflections.rb | 1 + test/dummy/config/initializers/mime_types.rb | 1 + test/react/jsx_test.rb | 2 +- test/react/rails/controller_lifecycle_test.rb | 2 +- 5 files changed, 5 insertions(+), 2 deletions(-) diff --git a/test/dummy/config/initializers/backtrace_silencers.rb b/test/dummy/config/initializers/backtrace_silencers.rb index d0f0d3b5d..4b63f2893 100644 --- a/test/dummy/config/initializers/backtrace_silencers.rb +++ b/test/dummy/config/initializers/backtrace_silencers.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + # Be sure to restart your server when you modify this file. # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. diff --git a/test/dummy/config/initializers/inflections.rb b/test/dummy/config/initializers/inflections.rb index aa7435fbc..dc8474221 100644 --- a/test/dummy/config/initializers/inflections.rb +++ b/test/dummy/config/initializers/inflections.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Add new inflection rules using the following format. Inflections diff --git a/test/dummy/config/initializers/mime_types.rb b/test/dummy/config/initializers/mime_types.rb index f75864f9c..df5ec138c 100644 --- a/test/dummy/config/initializers/mime_types.rb +++ b/test/dummy/config/initializers/mime_types.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Add new mime types for use in respond_to blocks: diff --git a/test/react/jsx_test.rb b/test/react/jsx_test.rb index c9ed8d43b..25bb14ac8 100644 --- a/test/react/jsx_test.rb +++ b/test/react/jsx_test.rb @@ -22,7 +22,7 @@ STR class NullTransformer - def initialize(_options = {}); end # rubocop:disable-line Style/RedundantInitialize + def initialize(_options = {}); end # rubocop:disable Style/RedundantInitialize def transform(_code) "TRANSFORMED CODE!;\n" diff --git a/test/react/rails/controller_lifecycle_test.rb b/test/react/rails/controller_lifecycle_test.rb index 036901093..4992cde93 100644 --- a/test/react/rails/controller_lifecycle_test.rb +++ b/test/react/rails/controller_lifecycle_test.rb @@ -41,7 +41,7 @@ def teardown get "/pages/1" helper_obj = controller.__react_component_helper - assert(helper_obj.is_a?(DummyHelperImplementation), "It uses the view helper implementation class") + assert_kind_of(DummyHelperImplementation, helper_obj, "It uses the view helper implementation class") end test "it calls setup and teardown methods" do