]> source.dussan.org Git - redmine.git/commitdiff
Fix rubocop warnings on 5.1-stable branch.
authorMarius Balteanu <marius.balteanu@zitec.com>
Sun, 3 Mar 2024 22:34:44 +0000 (22:34 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Sun, 3 Mar 2024 22:34:44 +0000 (22:34 +0000)
git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@22762 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/issues_controller_test.rb
test/functional/messages_controller_test.rb
test/integration/api_test/users_test.rb
test/integration/routing/plugins_test.rb
test/unit/lib/redmine/acts/mentionable_test.rb

index 1aa0446d05515b27559f404c02bb3287f7ead958..cce8ddc625290f2acbc816074c74b743e7cca262 100644 (file)
@@ -1199,7 +1199,7 @@ class IssuesControllerTest < Redmine::ControllerTest
       create!(
         :name => 'Long text', :field_format => 'text',
         :full_width_layout => '1',
-        :tracker_ids => [1,3], :is_for_all => true
+        :tracker_ids => [1, 3], :is_for_all => true
       )
     issue = Issue.find(1)
     issue.custom_field_values = {field.id => 'This is a long text'}
index ffb0c7e2577a5e807563f113f9ea6e8f07c94698..85f45f1d708372e4c669d09affcf95ab14ee4f3a 100644 (file)
@@ -318,7 +318,7 @@ class MessagesControllerTest < Redmine::ControllerTest
       :params => {
         :board_id => 1,
         :id => 3
-      },
+      }
     )
 
     assert_response 404
index 5f5c65ff05e887c96266a31db820aea9f06e974c..995dc689f5d6a65f98eb967b7aaad14aeb9396a8 100644 (file)
@@ -139,7 +139,7 @@ class Redmine::ApiTest::UsersTest < Redmine::ApiTest::Base
     assert_response :success
     json = ActiveSupport::JSON.decode(response.body)
     assert json.key?('users')
-    users = User.where(status: [1,3])
+    users = User.where(status: [1, 3])
     assert_equal users.size, json['users'].size
   end
 
index 48792b1aa1d56a51ff0032d32db8c82500ab5934..ddbf415a1547868f89d0dbfd76f410862b108afd 100644 (file)
@@ -75,8 +75,8 @@ class RoutingPluginsTest < Redmine::RoutingTest
     assert_equal("/bar_plugin_articles", plugin_articles_path)
     should_route(
       'GET /attachments/plugin_articles/12/edit' => 'attachments#edit_all',
-      object_id: '12',
-      object_type: 'plugin_articles'
+      :object_id => '12',
+      :object_type => 'plugin_articles'
     )
   end
 
index b04f129547e1b6ffdd4d99eb37e8ef4625271286..8cc86057f227ee639579c0fd86bace693da75d36 100644 (file)
@@ -29,7 +29,7 @@ class Redmine::Acts::MentionableTest < ActiveSupport::TestCase
          :issues
 
   def test_mentioned_users_with_user_mention
-    to_test = %w(@dlopper @dlopper! @dlopper? @dlopper. @dlopper,)
+    to_test = %w(@dlopper @dlopper! @dlopper? @dlopper. @dlopper)
 
     to_test.each do |item|
       issue = Issue.generate!(project_id: 1, description: item)