File tree 2 files changed +2
-2
lines changed
app/presenters/content_item
test/presenters/content_item
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ def default_news_image
12
12
end
13
13
14
14
def placeholder_image
15
- " https://assets.publishing.service.gov.uk/government/assets/placeholder.jpg"
15
+ { "url" => " https://assets.publishing.service.gov.uk/government/assets/placeholder.jpg" }
16
16
end
17
17
end
18
18
end
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ def initialize
34
34
35
35
test "presents a placeholder image if document has no image or default news image" do
36
36
item = DummyContentItem . new
37
- placeholder_image = " https://assets.publishing.service.gov.uk/government/assets/placeholder.jpg"
37
+ placeholder_image = { "url" => " https://assets.publishing.service.gov.uk/government/assets/placeholder.jpg" }
38
38
39
39
assert_equal placeholder_image , item . image
40
40
end
You can’t perform that action at this time.
0 commit comments