From: Toshi MARUYAMA Date: Tue, 15 Oct 2019 05:07:17 +0000 (+0000) Subject: code cleanup: rubocop: fix Layout/EmptyLineBetweenDefs and Layout/EmptyLines in app... X-Git-Tag: 4.1.0~419 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b65348fa2c22b828b33b2ec44bdb13a785cd755d;p=redmine.git 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 --- diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index d350ece64..1aae23a91 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -128,7 +128,6 @@ Layout/EmptyLineAfterGuardClause: Layout/EmptyLineBetweenDefs: Exclude: - 'app/models/version.rb' - - 'test/unit/project_test.rb' # Cop supports --auto-correct. Layout/EmptyLines: @@ -143,7 +142,6 @@ Layout/EmptyLines: - 'test/functional/project_enumerations_controller_test.rb' - 'test/helpers/application_helper_test.rb' - 'test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb' - - 'test/unit/project_test.rb' - 'test/unit/query_test.rb' # Cop supports --auto-correct. diff --git a/test/unit/project_test.rb b/test/unit/project_test.rb index 8d447f474..3858eba45 100644 --- a/test/unit/project_test.rb +++ b/test/unit/project_test.rb @@ -789,7 +789,6 @@ class ProjectTest < ActiveSupport::TestCase assert_kind_of ActiveRecord::Relation, project.activities end - def test_activities_should_use_the_project_specific_activities project = Project.find(1) overridden_activity = TimeEntryActivity.new({:name => "Project", :project => project})