mirror of
https://github.com/redmine/redmine.git
synced 2025-11-15 17:56:03 +01:00
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:
@@ -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.
|
||||||
|
|||||||
@@ -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})
|
||||||
|
|||||||
Reference in New Issue
Block a user