]> source.dussan.org Git - redmine.git/commitdiff
Fix RuboCop offense Style/MethodCallWithoutArgsParentheses (#36919).
authorGo MAEDA <maeda@farend.jp>
Wed, 25 Jan 2023 02:14:28 +0000 (02:14 +0000)
committerGo MAEDA <maeda@farend.jp>
Wed, 25 Jan 2023 02:14:28 +0000 (02:14 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@22075 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb
test/unit/lib/redmine/scm/adapters/git_adapter_test.rb
test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb

index 0d22adaa3637ecbc565cd0c18640295f77c7b8bc..080c177bbe2ebdd8b7aef7e2c08a9e17e52bf4ce 100644 (file)
@@ -174,7 +174,7 @@ class BazaarAdapterTest < ActiveSupport::TestCase
     end
 
     def test_entry
-      entry = @adapter.entry()
+      entry = @adapter.entry
       assert_equal "", entry.path
       assert_equal "dir", entry.kind
       entry = @adapter.entry('')
index 95dcea35e5390133b17d172cc43f54f78f13bc07..b81261c41f03a27eb1dd3e9fe7a7d54a838ce3de 100644 (file)
@@ -610,7 +610,7 @@ class GitAdapterTest < ActiveSupport::TestCase
     end
 
     def test_entry
-      entry = @adapter.entry()
+      entry = @adapter.entry
       assert_equal "", entry.path
       assert_equal "dir", entry.kind
       entry = @adapter.entry('')
index 39d92cdc1e60db85153ecd7e5ceaa0f41cbaa5de..7eb86a62163d3d4a356a9e424fed987746895d1e 100644 (file)
@@ -279,7 +279,7 @@ class MercurialAdapterTest < ActiveSupport::TestCase
     end
 
     def test_entry
-      entry = @adapter.entry()
+      entry = @adapter.entry
       assert_equal "", entry.path
       assert_equal "dir", entry.kind
       entry = @adapter.entry('')