aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-04-03 08:40:15 +0900
committerRyuta Kamizono <kamipo@gmail.com>2019-04-03 08:40:15 +0900
commitb2209ca59dc8cc0a1157c93ca956d1959b79c465 (patch)
treebcfd6ea9b68593858c6f7333aff5c2805ff1e728
parent59bed68d5e37b994f5e607c3d2b8c5424a0948b9 (diff)
downloadrails-b2209ca59dc8cc0a1157c93ca956d1959b79c465.tar.gz
rails-b2209ca59dc8cc0a1157c93ca956d1959b79c465.tar.bz2
rails-b2209ca59dc8cc0a1157c93ca956d1959b79c465.zip
Auto-correct rubocop offences
-rw-r--r--actionpack/test/dispatch/routing_test.rb30
-rw-r--r--railties/test/application/zeitwerk_integration_test.rb4
2 files changed, 17 insertions, 17 deletions
diff --git a/actionpack/test/dispatch/routing_test.rb b/actionpack/test/dispatch/routing_test.rb
index de0c9f3460..11772a36a3 100644
--- a/actionpack/test/dispatch/routing_test.rb
+++ b/actionpack/test/dispatch/routing_test.rb
@@ -2210,25 +2210,25 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest
end
end
- get '/posts/1/comments'
- assert_equal 'comments#index', @response.body
- assert_equal '/posts/1/comments', post_comments_path('1')
+ get "/posts/1/comments"
+ assert_equal "comments#index", @response.body
+ assert_equal "/posts/1/comments", post_comments_path("1")
- get '/posts/1/comments/new'
- assert_equal 'comments#new', @response.body
- assert_equal '/posts/1/comments/new', new_post_comment_path('1')
+ get "/posts/1/comments/new"
+ assert_equal "comments#new", @response.body
+ assert_equal "/posts/1/comments/new", new_post_comment_path("1")
- get '/posts/1/comments/2'
- assert_equal 'comments#show', @response.body
- assert_equal '/posts/1/comments/2', post_comment_path('1', '2')
+ get "/posts/1/comments/2"
+ assert_equal "comments#show", @response.body
+ assert_equal "/posts/1/comments/2", post_comment_path("1", "2")
- get '/posts/1/comments/2/edit'
- assert_equal 'comments#edit', @response.body
- assert_equal '/posts/1/comments/2/edit', edit_post_comment_path('1', '2')
+ get "/posts/1/comments/2/edit"
+ assert_equal "comments#edit", @response.body
+ assert_equal "/posts/1/comments/2/edit", edit_post_comment_path("1", "2")
- get '/tags/3'
- assert_equal 'tags#show', @response.body
- assert_equal '/tags/3', tag_path('3')
+ get "/tags/3"
+ assert_equal "tags#show", @response.body
+ assert_equal "/tags/3", tag_path("3")
end
def test_shallow_deeply_nested_resources
diff --git a/railties/test/application/zeitwerk_integration_test.rb b/railties/test/application/zeitwerk_integration_test.rb
index 5d2e34433a..dc6db429a9 100644
--- a/railties/test/application/zeitwerk_integration_test.rb
+++ b/railties/test/application/zeitwerk_integration_test.rb
@@ -181,8 +181,8 @@ class ZeitwerkIntegrationTest < ActiveSupport::TestCase
boot("production")
assert $zeitwerk_integration_test_user
- assert !$zeitwerk_integration_test_lib
- assert !$zeitwerk_integration_test_extras
+ assert_not $zeitwerk_integration_test_lib
+ assert_not $zeitwerk_integration_test_extras
assert WebhookHacks
assert WebsocketHacks