diff options
author | Go MAEDA <maeda@farend.jp> | 2023-10-12 23:10:25 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-10-12 23:10:25 +0000 |
commit | b81818100c905df209caf2659faafda80542e16f (patch) | |
tree | 1cabf693320dda821fc0990ddfbd6954171d1e7d /test/integration/twofa_test.rb | |
parent | cb617673b3e072e9d64c198b45e8a020cc754c70 (diff) | |
download | redmine-b81818100c905df209caf2659faafda80542e16f.tar.gz redmine-b81818100c905df209caf2659faafda80542e16f.zip |
Fix RuboCop offense Rails/RedundantActiveRecordAllMethod (#37248).
git-svn-id: https://svn.redmine.org/redmine/trunk@22340 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/twofa_test.rb')
-rw-r--r-- | test/integration/twofa_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/integration/twofa_test.rb b/test/integration/twofa_test.rb index eb24de402..b35a44575 100644 --- a/test/integration/twofa_test.rb +++ b/test/integration/twofa_test.rb @@ -56,7 +56,7 @@ class TwofaTest < Redmine::IntegrationTest user = User.find_by_login 'jsmith' assert_not user.must_activate_twofa? - group = Group.all.first + group = Group.first group.update_column :twofa_required, true group.users << user user.reload |