fixed tests

This commit is contained in:
olegphenomenon 2022-11-07 15:59:48 +02:00
parent 045b5f03ba
commit 48c14b8a39
4 changed files with 6 additions and 3 deletions

View file

@ -58,6 +58,8 @@ 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',
@ -88,6 +90,7 @@ class EppResponseResultCodeTest < ActiveSupport::TestCase
2502 => Shunter.default_error_message
}
assert_equal descriptions, Epp::Response::Result::Code.default_descriptions
ENV["shunter_default_threshold"] = '10000'
end
def test_equality