From fad9ee020232c69fa95129df47f241406eb84170 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Fri, 14 Jun 2024 18:22:09 +0200 Subject: [PATCH] Remove redundant url_helpers in spec --- spec/controllers/submissions_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/controllers/submissions_controller_spec.rb b/spec/controllers/submissions_controller_spec.rb index 37f07c39..1d346dca 100644 --- a/spec/controllers/submissions_controller_spec.rb +++ b/spec/controllers/submissions_controller_spec.rb @@ -290,7 +290,7 @@ RSpec.describe SubmissionsController do let(:url) { supported_urls.find {|hash| hash[:filepath] == file.filepath }['url'] } 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 it 'includes a token' do