mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user