Fix voucher adjustment request spec

Error messages have been updated to be more user friendly. This spec
was missed somehow.
This commit is contained in:
Gaetan Craig-Riou
2023-07-31 14:06:36 +10:00
parent 089d2b9c84
commit 2857930263

View File

@@ -61,9 +61,7 @@ describe VoucherAdjustmentsController, type: :request do
post "/voucher_adjustments", params: params
expect(response).to be_unprocessable
expect(flash[:error]).to match(
"There was an error while adding the voucher and Label can't be blank"
)
expect(flash[:error]).to match("Voucher code There was an error while adding the voucher")
end
end