code cleanup: rubocop: fix Layout/EmptyLineBetweenDefs and Layout/EmptyLines in app/models/version.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18674 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2019-10-15 05:07:17 +00:00
parent 6a3d42dd69
commit b65348fa2c
2 changed files with 0 additions and 3 deletions

View File

@@ -128,7 +128,6 @@ Layout/EmptyLineAfterGuardClause:
Layout/EmptyLineBetweenDefs: Layout/EmptyLineBetweenDefs:
Exclude: Exclude:
- 'app/models/version.rb' - 'app/models/version.rb'
- 'test/unit/project_test.rb'
# Cop supports --auto-correct. # Cop supports --auto-correct.
Layout/EmptyLines: Layout/EmptyLines:
@@ -143,7 +142,6 @@ Layout/EmptyLines:
- 'test/functional/project_enumerations_controller_test.rb' - 'test/functional/project_enumerations_controller_test.rb'
- 'test/helpers/application_helper_test.rb' - 'test/helpers/application_helper_test.rb'
- 'test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb' - 'test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb'
- 'test/unit/project_test.rb'
- 'test/unit/query_test.rb' - 'test/unit/query_test.rb'
# Cop supports --auto-correct. # Cop supports --auto-correct.

View File

@@ -789,7 +789,6 @@ class ProjectTest < ActiveSupport::TestCase
assert_kind_of ActiveRecord::Relation, project.activities assert_kind_of ActiveRecord::Relation, project.activities
end end
def test_activities_should_use_the_project_specific_activities def test_activities_should_use_the_project_specific_activities
project = Project.find(1) project = Project.find(1)
overridden_activity = TimeEntryActivity.new({:name => "Project", :project => project}) overridden_activity = TimeEntryActivity.new({:name => "Project", :project => project})