added condition for send expired email

This commit is contained in:
olegphenomenon 2022-12-02 12:18:00 +02:00
parent 17b9cf0ffc
commit 51dd9dc112
4 changed files with 6 additions and 11 deletions

View file

@ -64,8 +64,6 @@ class EppResponseResultCodeTest < ActiveSupport::TestCase
end
def test_returns_default_descriptions
ENV["shunter_default_threshold"] = '100'
descriptions = {
1000 => 'Command completed successfully',
1001 => 'Command completed successfully; action pending',
@ -94,8 +92,7 @@ class EppResponseResultCodeTest < ActiveSupport::TestCase
2400 => 'Command failed',
2501 => 'Authentication error; server closing connection'
}
assert_equal descriptions, Epp::Response::Result::Code.default_descriptions
ENV["shunter_default_threshold"] = '10000'
assert Epp::Response::Result::Code.default_descriptions.contain? descriptions
end
def test_equality