diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 4cb156e5..c7e741b8 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,11 +1,31 @@ # This configuration was generated by # `rubocop --auto-gen-config` -# on 2023-04-19 19:51:02 UTC using RuboCop version 1.50.2. +# on 2024-05-19 09:40:57 UTC using RuboCop version 1.63.5. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new # versions of RuboCop, may require this file to be generated again. +# Offense count: 2 +# This cop supports safe autocorrection (--autocorrect). +Minitest/AssertOperator: + Exclude: + - 'test/controllers/registrations_controller_test.rb' + +# Offense count: 50 +# This cop supports safe autocorrection (--autocorrect). +Minitest/EmptyLineBeforeAssertionMethods: + Exclude: + - 'test/actions/user/fetch_club_test.rb' + - 'test/actions/user/fetch_enrolled_clubs_test.rb' + - 'test/controllers/event_controller_test.rb' + - 'test/controllers/partners_controller_test.rb' + - 'test/controllers/registrations_controller_test.rb' + - 'test/controllers/welcome_controller_test.rb' + - 'test/helpers/access_levels_helper_test.rb' + - 'test/mailers/registration_mailer_test.rb' + - 'test/models/registration_test.rb' + # Offense count: 5 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: Include. diff --git a/app/models/user.rb b/app/models/user.rb index cc72b023..5dedcde3 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -62,7 +62,7 @@ def enqueue_fetch_club # specifies the daily update for a users (enrolled) clubs def self.daily_update - User.all.find_each do |u| + User.find_each do |u| User::FetchEnrolledClubsJob.set(wait: rand(240).minutes).perform_later(u.id) User::FetchClubJob.set(wait: rand(240).minutes).perform_later(u.id) end