mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 01:11:43 +02:00
Introduce custom assertion
This commit is contained in:
parent
5939da366e
commit
348e6e5d7a
54 changed files with 378 additions and 389 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue