Skip to content

Commit b2209ca

Browse files
committed
Auto-correct rubocop offences
1 parent 59bed68 commit b2209ca

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

actionpack/test/dispatch/routing_test.rb

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2210,25 +2210,25 @@ def test_shallow_false_inside_nested_shallow_resource
22102210
end
22112211
end
22122212

2213-
get '/posts/1/comments'
2214-
assert_equal 'comments#index', @response.body
2215-
assert_equal '/posts/1/comments', post_comments_path('1')
2213+
get "/posts/1/comments"
2214+
assert_equal "comments#index", @response.body
2215+
assert_equal "/posts/1/comments", post_comments_path("1")
22162216

2217-
get '/posts/1/comments/new'
2218-
assert_equal 'comments#new', @response.body
2219-
assert_equal '/posts/1/comments/new', new_post_comment_path('1')
2217+
get "/posts/1/comments/new"
2218+
assert_equal "comments#new", @response.body
2219+
assert_equal "/posts/1/comments/new", new_post_comment_path("1")
22202220

2221-
get '/posts/1/comments/2'
2222-
assert_equal 'comments#show', @response.body
2223-
assert_equal '/posts/1/comments/2', post_comment_path('1', '2')
2221+
get "/posts/1/comments/2"
2222+
assert_equal "comments#show", @response.body
2223+
assert_equal "/posts/1/comments/2", post_comment_path("1", "2")
22242224

2225-
get '/posts/1/comments/2/edit'
2226-
assert_equal 'comments#edit', @response.body
2227-
assert_equal '/posts/1/comments/2/edit', edit_post_comment_path('1', '2')
2225+
get "/posts/1/comments/2/edit"
2226+
assert_equal "comments#edit", @response.body
2227+
assert_equal "/posts/1/comments/2/edit", edit_post_comment_path("1", "2")
22282228

2229-
get '/tags/3'
2230-
assert_equal 'tags#show', @response.body
2231-
assert_equal '/tags/3', tag_path('3')
2229+
get "/tags/3"
2230+
assert_equal "tags#show", @response.body
2231+
assert_equal "/tags/3", tag_path("3")
22322232
end
22332233

22342234
def test_shallow_deeply_nested_resources

railties/test/application/zeitwerk_integration_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ class RESTfulController < ApplicationController
181181
boot("production")
182182

183183
assert $zeitwerk_integration_test_user
184-
assert !$zeitwerk_integration_test_lib
185-
assert !$zeitwerk_integration_test_extras
184+
assert_not $zeitwerk_integration_test_lib
185+
assert_not $zeitwerk_integration_test_extras
186186

187187
assert WebhookHacks
188188
assert WebsocketHacks

0 commit comments

Comments
 (0)