Fix post replacement test failure.

This commit is contained in:
evazion
2017-11-17 13:00:35 -06:00
parent 3df404dbd9
commit 93767c3023

View File

@@ -246,7 +246,7 @@ class PostReplacementTest < ActiveSupport::TestCase
context "a post when replaced with a HTML source" do
should "record the image URL as the replacement URL, not the HTML source" do
replacement_url = "https://twitter.com/nounproject/status/540944400767922176"
image_url = "http://pbs.twimg.com/media/B4HSEP5CUAA4xyu.png:orig"
image_url = "https://pbs.twimg.com/media/B4HSEP5CUAA4xyu.png:orig"
@post.replace!(replacement_url: replacement_url)
assert_equal(image_url, @post.replacements.last.replacement_url)