mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 17:28:18 +02:00
Introduce custom assertion
This commit is contained in:
parent
5939da366e
commit
348e6e5d7a
54 changed files with 378 additions and 389 deletions
|
@ -64,7 +64,7 @@ RSpec.describe 'EPP domain:create', settings: false do
|
|||
|
||||
specify do
|
||||
request
|
||||
expect(response).to have_code_of(2308)
|
||||
expect(Epp::Response.xml(response.body).code?(Epp::Response::Result::Code.key(:data_management_policy_violation))).to be_truthy
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -103,7 +103,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
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue