Merge branch 'rspec' into registry-569

This commit is contained in:
Artur Beljajev 2017-07-21 00:40:52 +03:00
commit 729a9b00d2

View file

@ -11,7 +11,11 @@ module Matchers
end
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
private
@ -23,7 +27,7 @@ module Matchers
xml_document.xpath('//xmlns:result').first['code'].to_i
end
def description
def code_description
xml_document.css('result msg').text
end