mirror of
https://github.com/redmine/redmine.git
synced 2026-04-01 18:21:12 +02:00
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:
@@ -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'}
|
||||
|
||||
@@ -318,7 +318,7 @@ class MessagesControllerTest < Redmine::ControllerTest
|
||||
:params => {
|
||||
:board_id => 1,
|
||||
:id => 3
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
assert_response 404
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user