Fix rubocop warnings on 5.1-stable branch.

git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@22762 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu
2024-03-03 22:34:44 +00:00
parent fcd089a3b4
commit c7fb4dbad4
5 changed files with 6 additions and 6 deletions

View 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'}

View File

@@ -318,7 +318,7 @@ class MessagesControllerTest < Redmine::ControllerTest
:params => {
:board_id => 1,
:id => 3
},
}
)
assert_response 404

View 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

View 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

View 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)