2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-07 12:02:53 +08:00

FIX: Say the file uploaded is too large, not "image" as you can upload

other kinds of files.
This commit is contained in:
Robin Ward 2014-10-09 16:03:04 -04:00
parent ae20369733
commit 285c66b899
25 changed files with 3 additions and 26 deletions

View file

@ -57,7 +57,7 @@ test("prevents files that are too big from being uploaded", function() {
sandbox.stub(bootbox, "alert");
not(validUpload([image]));
ok(bootbox.alert.calledWith(I18n.t('post.errors.image_too_large', { max_size_kb: 5 })));
ok(bootbox.alert.calledWith(I18n.t('post.errors.file_too_large', { max_size_kb: 5 })));
});
var dummyBlob = function() {