Fix typo.

This commit is contained in:
Guo Xiang Tan 2017-05-12 10:31:31 +08:00
parent 8eecd42856
commit 41711e53b7

View File

@ -13,7 +13,7 @@ describe Jobs::PullHotlinkedImages do
it 'replaces image src' do
post = Fabricate(:post, raw: "<img src='http://wiki.mozilla.org/images/2/2e/Longcat1.png'>")
Jobs::PullHotl.inkedImages.new.execute(post_id: post.id)
Jobs::PullHotlinkedImages.new.execute(post_id: post.id)
post.reload
expect(post.raw).to match(/^<img src='\/uploads/)