Remove redundant url_helpers in spec

This commit is contained in:
Sebastian Serth
2024-06-14 18:22:09 +02:00
committed by Dominic Sauer
parent dc21c31f9d
commit fad9ee0202

View File

@ -290,7 +290,7 @@ RSpec.describe SubmissionsController do
let(:url) { supported_urls.find {|hash| hash[:filepath] == file.filepath }['url'] } let(:url) { supported_urls.find {|hash| hash[:filepath] == file.filepath }['url'] }
it 'starts like the render path' do it 'starts like the render path' do
expect(url).to start_with(Rails.application.routes.url_helpers.render_submission_url(submission, file.filepath, host: request.host)) expect(url).to start_with(render_submission_url(submission, file.filepath, host: request.host))
end end
it 'includes a token' do it 'includes a token' do