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

@ -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