Skip to content

Commit a0ac3d1

Browse files
committed
more linting
1 parent 1aa4eae commit a0ac3d1

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

test/dummy/config/initializers/backtrace_silencers.rb

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# frozen_string_literal: true
2+
23
# Be sure to restart your server when you modify this file.
34

45
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.

test/dummy/config/initializers/inflections.rb

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# frozen_string_literal: true
2+
23
# Be sure to restart your server when you modify this file.
34

45
# Add new inflection rules using the following format. Inflections

test/dummy/config/initializers/mime_types.rb

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# frozen_string_literal: true
2+
23
# Be sure to restart your server when you modify this file.
34

45
# Add new mime types for use in respond_to blocks:

test/react/jsx_test.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
STR
2323

2424
class NullTransformer
25-
def initialize(_options = {}); end # rubocop:disable-line Style/RedundantInitialize
25+
# rubocop:disable-line Style/RedundantInitialize
2626

2727
def transform(_code)
2828
"TRANSFORMED CODE!;\n"

test/react/rails/controller_lifecycle_test.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def teardown
4141
get "/pages/1"
4242
helper_obj = controller.__react_component_helper
4343

44-
assert(helper_obj.is_a?(DummyHelperImplementation), "It uses the view helper implementation class")
44+
assert_kind_of(DummyHelperImplementation, helper_obj, "It uses the view helper implementation class")
4545
end
4646

4747
test "it calls setup and teardown methods" do

0 commit comments

Comments
 (0)