fixed tests
This commit is contained in:
@@ -2357,7 +2357,8 @@ CREATE TABLE tag_subscriptions (
|
|||||||
post_ids text NOT NULL,
|
post_ids text NOT NULL,
|
||||||
is_public boolean DEFAULT true NOT NULL,
|
is_public boolean DEFAULT true NOT NULL,
|
||||||
created_at timestamp without time zone,
|
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
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ class UploadTest < ActiveSupport::TestCase
|
|||||||
@upload.calculate_dimensions(@upload.file_path)
|
@upload.calculate_dimensions(@upload.file_path)
|
||||||
assert_nothing_raised {@upload.generate_resizes(@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(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(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_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)))
|
assert(File.exists?(@upload.resized_file_path_for(Danbooru.config.large_image_width)))
|
||||||
|
|||||||
Reference in New Issue
Block a user