mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
Add new algos & test
This commit is contained in:
parent
2bdb235610
commit
d6310d6b15
3 changed files with 38 additions and 3 deletions
|
@ -23,7 +23,7 @@ class DnskeyTest < ActiveSupport::TestCase
|
|||
dns = Dnskey.new
|
||||
dns.alg = 666
|
||||
errors = dns.validate_algorithm.options[:values]
|
||||
assert_equal errors, 'Valid algorithms are: 3, 5, 6, 7, 8, 10, 13, 14'
|
||||
assert_equal errors, "Valid algorithms are: #{Dnskey::ALGORITHMS.join(', ')}"
|
||||
end
|
||||
|
||||
def test_invalid_protocol
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue