Introduce custom assertion

This commit is contained in:
Artur Beljajev 2019-09-03 18:15:58 +03:00
parent 5939da366e
commit 348e6e5d7a
54 changed files with 378 additions and 389 deletions

View file

@ -49,7 +49,7 @@ RSpec.describe 'EPP domain:create', settings: false do
specify do
request
expect(response).to have_code_of(1000)
expect(Epp::Response.xml(response.body).code?(Epp::Response::Result::Code.key(:completed_successfully))).to be_truthy
end
end
@ -62,7 +62,7 @@ RSpec.describe 'EPP domain:create', settings: false do
specify do
request
expect(response).to have_code_of(2104)
expect(Epp::Response.xml(response.body).code?(Epp::Response::Result::Code.key(:billing_failure))).to be_truthy
end
end
end