Fix Minitest::Result requirement

This commit is contained in:
Matt Todd 2021-06-01 21:25:52 +00:00 коммит произвёл GitHub
Родитель 3f1216f0df
Коммит b1b0361d7d
2 изменённых файлов: 8 добавлений и 4 удалений

Просмотреть файл

@ -3,7 +3,8 @@ require_relative '../test_helper'
class GitHubLdapActiveDirectoryMemberSearchStubbedTest < GitHub::Ldap::Test
# Only run when AD integration tests aren't run
def run(*)
self.class.test_env != "activedirectory" ? super : self
return super if self.class.test_env != "activedirectory"
Minitest::Result.from(self)
end
def find_group(cn)
@ -46,7 +47,8 @@ end
class GitHubLdapActiveDirectoryMemberSearchIntegrationTest < GitHub::Ldap::Test
# Only run this test suite if ActiveDirectory is configured
def run(*)
self.class.test_env == "activedirectory" ? super : self
return super if self.class.test_env == "activedirectory"
Minitest::Result.from(self)
end
def find_group(cn)

Просмотреть файл

@ -3,7 +3,8 @@ require_relative '../test_helper'
class GitHubLdapActiveDirectoryMembershipValidatorsStubbedTest < GitHub::Ldap::Test
# Only run when AD integration tests aren't run
def run(*)
self.class.test_env != "activedirectory" ? super : self
return super if self.class.test_env != "activedirectory"
Minitest::Result.from(self)
end
def setup
@ -72,7 +73,8 @@ end
class GitHubLdapActiveDirectoryMembershipValidatorsIntegrationTest < GitHub::Ldap::Test
# Only run this test suite if ActiveDirectory is configured
def run(*)
self.class.test_env == "activedirectory" ? super : self
return super if self.class.test_env == "activedirectory"
Minitest::Result.from(self)
end
def setup