From e36dd42480bc92b3f60bc79fd9e1f5f17242aaeb Mon Sep 17 00:00:00 2001 From: Jeffrey Warren Date: Wed, 1 May 2019 18:05:33 -0400 Subject: [PATCH] Fix scraped image system test bug (#5646) * Fix scraped image system test bug * Update node_test.rb --- test/fixtures/revisions.yml | 4 ++-- test/unit/node_test.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/fixtures/revisions.yml b/test/fixtures/revisions.yml index ce4098fd453..8c43ce2c9cd 100644 --- a/test/fixtures/revisions.yml +++ b/test/fixtures/revisions.yml @@ -310,7 +310,7 @@ scraped_image: nid: 27 uid: 2 title: Post test review 4 - body: "Lots of text and then an image: ![image preview](/url/to/image.png)" + body: "Lots of text and then an image: ![image preview](/images/pl.png)" timestamp: <%= DateTime.new(2018,8,20).to_i %> search_trawl: @@ -340,4 +340,4 @@ purple_air_with_hyphen: title: "This is purple-air with hyphen" body: "Is Purple-air searched with hyphens or without hyphens?" timestamp: <%= DateTime.new(2019,2,20).to_i %> - \ No newline at end of file + diff --git a/test/unit/node_test.rb b/test/unit/node_test.rb index 2afbaca1f19..d5fed8a2843 100644 --- a/test/unit/node_test.rb +++ b/test/unit/node_test.rb @@ -441,7 +441,7 @@ def setup test 'should show scraped image' do node = nodes(:scraped_image) - assert_equal '/url/to/image.png', node.scraped_image + assert_equal '/images/pl.png', node.scraped_image end test 'contribution graph making' do