fixed tests

This commit is contained in:
albert 2011-09-29 13:33:16 -04:00
parent 19add9aa4e
commit c7aa04fa43
2 changed files with 3 additions and 2 deletions

View File

@ -2357,7 +2357,8 @@ CREATE TABLE tag_subscriptions (
post_ids text NOT NULL,
is_public boolean DEFAULT true NOT NULL,
created_at timestamp without time zone,
updated_at timestamp without time zone
updated_at timestamp without time zone,
last_accessed_at timestamp without time zone
);

View File

@ -121,7 +121,7 @@ class UploadTest < ActiveSupport::TestCase
@upload.calculate_dimensions(@upload.file_path)
assert_nothing_raised {@upload.generate_resizes(@upload.file_path)}
assert(File.exists?(@upload.resized_file_path_for(Danbooru.config.small_image_width)))
assert_equal(4817, File.size(@upload.resized_file_path_for(Danbooru.config.small_image_width)))
assert_equal(5613, File.size(@upload.resized_file_path_for(Danbooru.config.small_image_width)))
assert(File.exists?(@upload.resized_file_path_for(Danbooru.config.medium_image_width)))
assert_equal(42990, 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)))