From 694eefd314b114370be7b5e1bd6f65ceae891afb Mon Sep 17 00:00:00 2001 From: albert Date: Thu, 3 Nov 2011 14:49:47 -0400 Subject: [PATCH] fix upload test --- db/development_structure.sql | 4 +++- test/unit/upload_test.rb | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/db/development_structure.sql b/db/development_structure.sql index 49a044355..435630d74 100644 --- a/db/development_structure.sql +++ b/db/development_structure.sql @@ -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'); \ No newline at end of file +INSERT INTO schema_migrations (version) VALUES ('20111101212358'); + +INSERT INTO schema_migrations (version) VALUES ('20111102222447'); \ No newline at end of file diff --git a/test/unit/upload_test.rb b/test/unit/upload_test.rb index 15c8a8bf3..9ffde4c54 100644 --- a/test/unit/upload_test.rb +++ b/test/unit/upload_test.rb @@ -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