Remove redundant url_helpers in spec
This commit is contained in:

committed by
Dominic Sauer

parent
dc21c31f9d
commit
fad9ee0202
@ -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
|
||||||
|
Reference in New Issue
Block a user