fix upload test

This commit is contained in:
albert
2011-11-03 14:49:47 -04:00
parent 104b552259
commit 694eefd314
2 changed files with 4 additions and 2 deletions

View File

@@ -5497,4 +5497,6 @@ INSERT INTO schema_migrations (version) VALUES ('20110722211855');
INSERT INTO schema_migrations (version) VALUES ('20110815233456');
INSERT INTO schema_migrations (version) VALUES ('20111101212358');
INSERT INTO schema_migrations (version) VALUES ('20111101212358');
INSERT INTO schema_migrations (version) VALUES ('20111102222447');

View File

@@ -125,7 +125,7 @@ class UploadTest < ActiveSupport::TestCase
assert(File.exists?(@upload.resized_file_path_for(Danbooru.config.medium_image_width)))
assert_equal(43470, File.size(@upload.resized_file_path_for(Danbooru.config.medium_image_width)))
assert(File.exists?(@upload.resized_file_path_for(Danbooru.config.large_image_width)))
assert_equal(198695, File.size(@upload.resized_file_path_for(Danbooru.config.large_image_width)))
assert_equal(129472, File.size(@upload.resized_file_path_for(Danbooru.config.large_image_width)))
end
end