Skip to content

Commit

Permalink
Fix rubocop indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ElsonOtake committed Dec 10, 2023
1 parent 2992eac commit 6939199
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
22 changes: 11 additions & 11 deletions test/integration/analytics_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ class AnalyticsIntegrationTest < ActionDispatch::IntegrationTest

def create_comment
sign_in @member
post "/members/#{@member.id}/posts/#{@post.id}/comments",
params: { comment: { text: 'MyString', author: @member, post: @post } }
assert_response :redirect
follow_redirect!
assert_response :success
post "/members/#{@member.id}/posts/#{@post.id}/comments",
params: { comment: { text: 'MyString', author: @member, post: @post } }
assert_response :redirect
follow_redirect!
assert_response :success
end

test 'should run counter job on creating comments' do
Expand Down Expand Up @@ -72,9 +72,9 @@ def create_comment

def update_comment
sign_in @member
put "/members/#{@member.id}/posts/#{@post.id}/comments/#{@comment.id}",
params: { comment: { text: 'MyString', author: @member, post: @post } }
assert_response :redirect
put "/members/#{@member.id}/posts/#{@post.id}/comments/#{@comment.id}",
params: { comment: { text: 'MyString', author: @member, post: @post } }
assert_response :redirect
end

test 'should run counter job on updating comments' do
Expand Down Expand Up @@ -107,9 +107,9 @@ def update_comment

def delete_comment
sign_in @member
delete "/members/#{@member.id}/posts/#{@post.id}/comments/#{@comment.id}",
params: { comment: { member: @member, post: @post, id: @comment.id } }
assert_response :redirect
delete "/members/#{@member.id}/posts/#{@post.id}/comments/#{@comment.id}",
params: { comment: { member: @member, post: @post, id: @comment.id } }
assert_response :redirect
end

test 'should run counter job on deleting comments' do
Expand Down
1 change: 0 additions & 1 deletion test/integration/visitors_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'test_helper'

class VisitorsIntegrationTest < ActionDispatch::IntegrationTest

test 'should not create Visitor when visiting the root path' do
assert_difference('Visitor.count', 0) do
get root_url
Expand Down

0 comments on commit 6939199

Please sign in to comment.