debian-mirror-gitlab/spec/support/shared_contexts/features/file_uploads_shared_context.rb
2020-11-05 12:06:23 +05:30

8 lines
221 B
Ruby

# frozen_string_literal: true
RSpec.shared_context 'file upload requests helpers' do
def capybara_url(path)
"http://#{Capybara.current_session.server.host}:#{Capybara.current_session.server.port}#{path}"
end
end