forked from e621ng/e621ng
fixed tests
This commit is contained in:
parent
19add9aa4e
commit
c7aa04fa43
@ -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
|
||||
);
|
||||
|
||||
|
||||
|
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user