Skip to content

Commit

Permalink
rubocopのルールから除外されていたファイルを、適用するように
Browse files Browse the repository at this point in the history
  • Loading branch information
masyuko0222 committed Feb 15, 2024
1 parent e24e51a commit 71d36a8
Show file tree
Hide file tree
Showing 11 changed files with 125 additions and 135 deletions.
10 changes: 0 additions & 10 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,3 @@ Style/HashSyntax:
- 'app/controllers/api/session_controller.rb'
- 'app/controllers/api/watches/toggle_controller.rb'
- 'app/controllers/application_controller.rb'
- 'test/deliveries/activity_delivery_test.rb'
- 'test/mailers/activity_mailer_test.rb'
- 'test/mailers/notification_mailer_test.rb'
- 'test/mailers/previews/activity_mailer_preview.rb'
- 'test/mailers/previews/notification_mailer_preview.rb'
- 'test/models/answer_test.rb'
- 'test/models/bookmark_test.rb'
- 'test/models/category_test.rb'
- 'test/models/discord/times_channel_test.rb'
- 'test/models/event_test.rb'
16 changes: 8 additions & 8 deletions test/deliveries/activity_delivery_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class ActivityDeliveryTest < ActiveSupport::TestCase
test '.notify(:checked)' do
check = checks(:procuct2_check_komagata)
params = {
check: check,
check:,
receiver: check.receiver
}

Expand Down Expand Up @@ -107,7 +107,7 @@ class ActivityDeliveryTest < ActiveSupport::TestCase
test '.notify(:submitted)' do
product = products(:product6)
params = {
product: product,
product:,
receiver: users(:mentormentaro)
}

Expand Down Expand Up @@ -204,7 +204,7 @@ class ActivityDeliveryTest < ActiveSupport::TestCase
test '.notify(:assigned_as_checker)' do
product = products(:product64)
params = {
product: product,
product:,
receiver: User.find(product.checker_id)
}

Expand Down Expand Up @@ -251,7 +251,7 @@ class ActivityDeliveryTest < ActiveSupport::TestCase
test '.notify(:first_report)' do
report = reports(:report10)
params = {
report: report,
report:,
receiver: users(:komagata)
}

Expand Down Expand Up @@ -298,7 +298,7 @@ class ActivityDeliveryTest < ActiveSupport::TestCase
test '.notify(:update_regular_event)' do
regular_event = regular_events(:regular_event1)
params = {
regular_event: regular_event,
regular_event:,
receiver: users(:komagata)
}

Expand Down Expand Up @@ -348,7 +348,7 @@ class ActivityDeliveryTest < ActiveSupport::TestCase
test '.notify(:chose_correct_answer)' do
answer = answers(:answer1)
params = {
answer: answer,
answer:,
receiver: answer.user
}

Expand All @@ -372,7 +372,7 @@ class ActivityDeliveryTest < ActiveSupport::TestCase
test '.notify(:no_correct_answer)' do
question = questions(:question1)
params = {
question: question,
question:,
receiver: question.user
}

Expand Down Expand Up @@ -421,7 +421,7 @@ class ActivityDeliveryTest < ActiveSupport::TestCase
commentable_path = Rails.application.routes.url_helpers.polymorphic_path(comment.commentable)

params = {
comment: comment,
comment:,
receiver: comment.receiver,
message: "相談部屋で#{comment.sender.login_name}さんからコメントがありました。",
link: "#{commentable_path}#latest-comment"
Expand Down
Loading

0 comments on commit 71d36a8

Please sign in to comment.