Skip to content
Open
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
3 changes: 2 additions & 1 deletion app/models/download_writer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ def write

def generate_html
renderer = ApplicationController.renderer.new(
http_host: ArchiveConfig.APP_HOST
http_host: ArchiveConfig.APP_HOST,
https: true
)
renderer.render(
template: "downloads/show",
Expand Down
4 changes: 2 additions & 2 deletions features/step_definitions/work_download_steps.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Then /^I should see the inspiring parent work link$/ do
parent = Work.find_by(title: "Worldbuilding")
inspired_link = "<a href=\"#{work_url(parent)}\">#{parent.title}</a>"
inspired_link = "<a href=\"#{UrlFormatter.new(work_url(parent)).with_https}\">#{parent.title}</a>"
page.body.should =~ /Inspired by #{Regexp.escape(inspired_link)}/m
end

Then /^I should see the external inspiring work link$/ do
parent = ExternalWork.find_by(title: "Example External")
inspired_link = "<a href=\"#{external_work_url(parent)}\">#{parent.title}</a>"
inspired_link = "<a href=\"#{UrlFormatter.new(external_work_url(parent)).with_https}\">#{parent.title}</a>"
page.body.should =~ /Inspired by #{Regexp.escape(inspired_link)}/m
end

Expand Down
Loading