summaryrefslogtreecommitdiffstats
path: root/test/unit/auth_source_ldap_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/auth_source_ldap_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/auth_source_ldap_test.rb')
-rw-r--r--test/unit/auth_source_ldap_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/auth_source_ldap_test.rb b/test/unit/auth_source_ldap_test.rb
index 958c46e97..9c37746bf 100644
--- a/test/unit/auth_source_ldap_test.rb
+++ b/test/unit/auth_source_ldap_test.rb
@@ -75,7 +75,7 @@ class AuthSourceLdapTest < ActiveSupport::TestCase
a = AuthSourceLdap.new(:name => 'My LDAP', :host => 'ldap.example.net', :port => 389, :attr_login => 'sn')
a.filter = "(mail=*@redmine.org"
- assert !a.valid?
+ assert a.invalid?
assert_include "LDAP filter is invalid", a.errors.full_messages
a.filter = "(mail=*@redmine.org)"