Skip to content

Commit

Permalink
(RST-5642) Rack 3 upgrade (needed change to puma for tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
garytaylor committed Apr 10, 2024
1 parent 8090da5 commit 0c1ee34
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -18,6 +18,6 @@ group :test do
gem 'et_test_helpers', git: 'https://github.com/hmcts/et_test_helpers.git', tag: 'v1.3.2'
end
group :development, :test do
gem "webrick", "~> 1.8"
gem "puma"
end

18 changes: 10 additions & 8 deletions Gemfile.lock
Expand Up @@ -16,7 +16,7 @@ PATH
specs:
et_gds_design_system (5.4.3)
govuk_design_system_formbuilder (~> 4.0)
rack (< 3.0.0)
rack
rails (>= 6.0)
typhoeus (~> 1.4)
webpacker (~> 5.0)
Expand Down Expand Up @@ -184,17 +184,19 @@ GEM
psych (5.1.2)
stringio
public_suffix (5.0.5)
puma (6.4.2)
nio4r (~> 2.0)
racc (1.7.3)
rack (2.2.9)
rack (3.0.10)
rack-proxy (0.7.7)
rack
rack-session (1.0.2)
rack (< 3)
rack-session (2.0.0)
rack (>= 3.0.0)
rack-test (2.1.0)
rack (>= 1.3)
rackup (1.0.0)
rack (< 3)
webrick
rackup (2.1.0)
rack (>= 3)
webrick (~> 1.8)
rails (7.1.3.2)
actioncable (= 7.1.3.2)
actionmailbox (= 7.1.3.2)
Expand Down Expand Up @@ -299,10 +301,10 @@ DEPENDENCIES
dotenv-rails (~> 3.1)
et_gds_design_system!
et_test_helpers!
puma
rspec-rails (~> 6.0)
selenium-webdriver (~> 4.9)
site_prism (~> 5.0)
webrick (~> 1.8)

BUNDLED WITH
2.1.4
1 change: 1 addition & 0 deletions app/controllers/et_gds_design_system/blobs_controller.rb
Expand Up @@ -4,6 +4,7 @@ class BlobsController < ::ApplicationController

def create
service = Api::CreateBlobService.new
request.body.rewind
response = service.call(request.body.read, headers: request.headers)
respond_to do |format|
if response.success?
Expand Down
1 change: 1 addition & 0 deletions app/javascript/components/DropzoneUploader.js
Expand Up @@ -99,6 +99,7 @@ const initDropzone = (node, type, acceptedFiles, attributeName, createBlobUrl) =
if (provider === 'azure') {
const send = xhr.send;
xhr.send = function () {
debugger
send.call(xhr, file);
xhr.send = send;
};
Expand Down
2 changes: 1 addition & 1 deletion et_gds_design_system.gemspec
Expand Up @@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
spec.add_dependency 'rails', '>= 6.0'
spec.add_dependency 'typhoeus', '~> 1.4'
spec.add_dependency 'webpacker', '~> 5.0'
spec.add_dependency 'rack', '< 3.0.0'
spec.add_dependency 'rack'

spec.add_development_dependency 'activerecord-nulldb-adapter', '~> 1.0'
spec.add_development_dependency 'capybara', '~> 3'
Expand Down
2 changes: 1 addition & 1 deletion spec/support/capybara.rb
Expand Up @@ -54,5 +54,5 @@
end

Capybara.always_include_port = true
Capybara.server = :webrick
Capybara.server = :puma
Capybara.save_path = File.absolute_path(File.join('..', '..', 'tmp', 'capybara'), __dir__)

0 comments on commit 0c1ee34

Please sign in to comment.