update dockerfiles

This commit is contained in:
Albert Yi
2018-06-25 16:30:53 -07:00
parent 2d8fcf820e
commit f4d5932a66
3 changed files with 31 additions and 29 deletions

View File

@@ -2651,9 +2651,9 @@ class PostTest < ActiveSupport::TestCase
should "generate the correct urls for animated gifs" do
@post = FactoryBot.build(:post, md5: "deadbeef", file_ext: "gif", tag_string: "animated_gif")
assert_equal("http://#{Socket.gethostname}/data/preview/deadbeef.jpg", @post.preview_file_url)
assert_equal("http://#{Socket.gethostname}/data/deadbeef.gif", @post.large_file_url)
assert_equal("http://#{Socket.gethostname}/data/deadbeef.gif", @post.file_url)
assert_equal("https://#{Socket.gethostname}/data/preview/deadbeef.jpg", @post.preview_file_url)
assert_equal("https://#{Socket.gethostname}/data/deadbeef.gif", @post.large_file_url)
assert_equal("https://#{Socket.gethostname}/data/deadbeef.gif", @post.file_url)
end
end