summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.rubocop_todo.yml1
-rw-r--r--test/unit/activity_test.rb4
2 files changed, 2 insertions, 3 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index 17c3889af..18316f1d6 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -1199,7 +1199,6 @@ Style/MethodCallWithoutArgsParentheses:
- 'lib/redmine/helpers/gantt.rb'
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
- 'lib/redmine/scm/adapters/filesystem_adapter.rb'
- - 'test/unit/activity_test.rb'
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
diff --git a/test/unit/activity_test.rb b/test/unit/activity_test.rb
index c5439f4a1..6e67b0853 100644
--- a/test/unit/activity_test.rb
+++ b/test/unit/activity_test.rb
@@ -171,7 +171,7 @@ class ActivityTest < ActiveSupport::TestCase
def test_event_types_should_include_activity_provider_with_nil_permission
Redmine::Activity.register 'test', :class_name => 'ActivityTest::TestActivityProviderWithNilPermission'
- user = MockUser.new()
+ user = MockUser.new
f = Redmine::Activity::Fetcher.new(user, :project => Project.find(1))
assert_include 'test', f.event_types
ensure
@@ -181,7 +181,7 @@ class ActivityTest < ActiveSupport::TestCase
def test_event_types_should_use_default_permission_for_activity_provider_without_permission
Redmine::Activity.register 'test', :class_name => 'ActivityTest::TestActivityProviderWithoutPermission'
- user = MockUser.new()
+ user = MockUser.new
f = Redmine::Activity::Fetcher.new(user, :project => Project.find(1))
assert_not_include 'test', f.event_types