Skip to content

Commit

Permalink
Fix scraped image system test bug (publiclab#5646)
Browse files Browse the repository at this point in the history
* Fix scraped image system test bug

* Update node_test.rb
  • Loading branch information
jywarren authored and digitaldina committed May 12, 2019
1 parent c01884c commit e36dd42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/fixtures/revisions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 %>


2 changes: 1 addition & 1 deletion test/unit/node_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e36dd42

Please sign in to comment.