From 6fbbc11dcd1e1651e5b218f9d91a1011a1a71a04 Mon Sep 17 00:00:00 2001 From: Irina Peshinskaya Date: Mon, 5 Jan 2015 17:37:06 +0200 Subject: [PATCH] MT#10797 Fix message in the tests. Change-Id: I938dc41b9d87ca1b0ac55cb7e2d82a6102df29dd --- t/api-customers.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/api-customers.t b/t/api-customers.t index 8d5d667f01..44e9b9e4fb 100644 --- a/t/api-customers.t +++ b/t/api-customers.t @@ -118,7 +118,7 @@ my @allcustomers = (); is($res->code, 422, "create customer with invalid type"); my $err = JSON::from_json($res->decoded_content); is($err->{code}, "422", "check error code in body"); - ok($err->{message} =~ /Invalid 'type'/, "check error message in body"); + ok($err->{message} =~ /Mandatory 'type' parameter is empty or invalid/, "check error message in body"); # try to create invalid customer with wrong billing profile $req->content(JSON::to_json({