summaryrefslogtreecommitdiffstats
path: root/test/unit/repository_cvs_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2023-03-25 01:51:31 +0000
committerGo MAEDA <maeda@farend.jp>2023-03-25 01:51:31 +0000
commitc1c9a5039784a7d97e104c4ffd84695ff8a25823 (patch)
treebe87a012c4ff31ef837fa7bd17773a31294a2f3e /test/unit/repository_cvs_test.rb
parent32d2b1c42f76c07e13bcf748b2071a29cf350606 (diff)
downloadredmine-c1c9a5039784a7d97e104c4ffd84695ff8a25823.tar.gz
redmine-c1c9a5039784a7d97e104c4ffd84695ff8a25823.zip
Fix RuboCop offense Style/InverseMethods: Use `invalid?` instead of inverting `valid?` (#37248).
git-svn-id: https://svn.redmine.org/redmine/trunk@22153 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_cvs_test.rb')
-rw-r--r--test/unit/repository_cvs_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/repository_cvs_test.rb b/test/unit/repository_cvs_test.rb
index 543ed210e..b7052e3ca 100644
--- a/test/unit/repository_cvs_test.rb
+++ b/test/unit/repository_cvs_test.rb
@@ -104,7 +104,7 @@ class RepositoryCvsTest < ActiveSupport::TestCase
:url => MODULE_NAME
)
repo.root_url = '/wrong_path'
- assert !repo.valid?
+ assert repo.invalid?
assert repo.errors[:root_url].present?
repo.root_url = '/cvspath/foo'