Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix scraped image system test bug #5646

Merged
merged 2 commits into from
May 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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