mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 18:59:38 +02:00
Merge branch 'rspec' into refactor-settings
This commit is contained in:
commit
711403e418
2 changed files with 7 additions and 3 deletions
|
@ -11,7 +11,11 @@ module Matchers
|
||||||
end
|
end
|
||||||
|
|
||||||
def failure_message
|
def failure_message
|
||||||
"Expected EPP code of #{expected}, got #{actual} (#{description})"
|
"Expected EPP code of #{expected}, got #{actual} (#{code_description})"
|
||||||
|
end
|
||||||
|
|
||||||
|
def description
|
||||||
|
"should have EPP code of #{expected}"
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
@ -23,7 +27,7 @@ module Matchers
|
||||||
xml_document.xpath('//xmlns:result').first['code'].to_i
|
xml_document.xpath('//xmlns:result').first['code'].to_i
|
||||||
end
|
end
|
||||||
|
|
||||||
def description
|
def code_description
|
||||||
xml_document.css('result msg').text
|
xml_document.css('result msg').text
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ RSpec.configure do |config|
|
||||||
Setting.ds_algorithm = 2
|
Setting.ds_algorithm = 2
|
||||||
Setting.ds_data_allowed = true
|
Setting.ds_data_allowed = true
|
||||||
Setting.ds_data_with_key_allowed = true
|
Setting.ds_data_with_key_allowed = true
|
||||||
Setting.key_data_allowed = true
|
Setting.key_data_allowed = false
|
||||||
|
|
||||||
Setting.dnskeys_min_count = 0
|
Setting.dnskeys_min_count = 0
|
||||||
Setting.dnskeys_max_count = 9
|
Setting.dnskeys_max_count = 9
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue