Rubocop fixes.
authorAndy Allan <git@gravitystorm.co.uk>
Thu, 1 Jun 2017 09:58:34 +0000 (10:58 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Thu, 1 Jun 2017 09:58:34 +0000 (10:58 +0100)
.rubocop_todo.yml
test/controllers/user_controller_test.rb

index 72913d43e9d6532dbe25e8cf3f44fcd51061a5a5..c8788ad660574bb310d0232238194f62d2d1d235 100644 (file)
@@ -64,7 +64,7 @@ Metrics/BlockNesting:
 # Offense count: 62
 # Configuration parameters: CountComments.
 Metrics/ClassLength:
-  Max: 1766
+  Max: 1781
 
 # Offense count: 69
 Metrics/CyclomaticComplexity:
index 636ef345082c4a25bfbf19f338ae0fc447550506..0812ec786b93be7c431a73e776e8b106346a5335 100644 (file)
@@ -1349,8 +1349,8 @@ class UserControllerTest < ActionController::TestCase
     user = create(:user)
     moderator_user = create(:moderator_user)
     administrator_user = create(:administrator_user)
-    suspended_user = create(:user, :suspended)
-    ip_user = create(:user, :creation_ip => "1.2.3.4")
+    _suspended_user = create(:user, :suspended)
+    _ip_user = create(:user, :creation_ip => "1.2.3.4")
 
     # There are now 7 users - the five above, plus two extra "granters" for the
     # moderator_user and administrator_user