diff options
Diffstat (limited to 'spec/support/shared_contexts/features/file_uploads_shared_context.rb')
-rw-r--r-- | spec/support/shared_contexts/features/file_uploads_shared_context.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/support/shared_contexts/features/file_uploads_shared_context.rb b/spec/support/shared_contexts/features/file_uploads_shared_context.rb new file mode 100644 index 00000000000..972d25e81d2 --- /dev/null +++ b/spec/support/shared_contexts/features/file_uploads_shared_context.rb @@ -0,0 +1,7 @@ +# 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 |