fix upload test
This commit is contained in:
@@ -5497,4 +5497,6 @@ INSERT INTO schema_migrations (version) VALUES ('20110722211855');
|
|||||||
|
|
||||||
INSERT INTO schema_migrations (version) VALUES ('20110815233456');
|
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');
|
||||||
@@ -125,7 +125,7 @@ class UploadTest < ActiveSupport::TestCase
|
|||||||
assert(File.exists?(@upload.resized_file_path_for(Danbooru.config.medium_image_width)))
|
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_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(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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user