Skip to content

Commit 9e81dcd

Browse files
justin808claude
andcommitted
Upgrade Capybara to 3.40.0 for Rack 3.2 compatibility
Fixes pre-existing test failures caused by Rack 3.2 incompatibility. Problem: - Integration tests failing with: uninitialized constant Rack::Handler - Rack 3.0+ removed Rack::Handler, but Capybara 3.39.2 still uses it - This error exists on both master and this branch (confirmed by testing) Solution: - Upgrade Capybara from 3.39.2 to ~> 3.40 - Capybara 3.40.0 adds full Rack 3 support (released 2024-01-26) - Version 3.39.0 had experimental Rack 3 support, 3.40.0 made it official Testing: - Verified tests now run without Rack::Handler error - bundle update capybara successful - Tests execute (though some still fail due to unrelated issues) Investigation notes: - Per CLAUDE.md guidance, confirmed failures are pre-existing on master - Tested master branch: same Rack::Handler error occurs - This fix addresses test suite infrastructure, not code changes in this PR References: - Capybara changelog: https://github.com/teamcapybara/capybara/blob/master/History.md - Rack 3 issue: teamcapybara/capybara#2640 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 6c44c87 commit 9e81dcd

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Gemfile.development_dependencies

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ group :development, :test do
4747
end
4848

4949
group :test do
50-
gem "capybara"
50+
gem "capybara", "~> 3.40"
5151
gem "capybara-screenshot"
5252
gem "coveralls", require: false
5353
gem "cypress-on-rails", "~> 1.19"

spec/dummy/Gemfile.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ GEM
100100
msgpack (~> 1.2)
101101
builder (3.3.0)
102102
byebug (11.1.3)
103-
capybara (3.39.2)
103+
capybara (3.40.0)
104104
addressable
105105
matrix
106106
mini_mime (>= 0.1.3)
107-
nokogiri (~> 1.8)
107+
nokogiri (~> 1.11)
108108
rack (>= 1.6.0)
109109
rack-test (>= 0.6.3)
110110
regexp_parser (>= 1.5, < 3.0)
@@ -177,7 +177,7 @@ GEM
177177
net-pop
178178
net-smtp
179179
marcel (1.1.0)
180-
matrix (0.4.2)
180+
matrix (0.4.3)
181181
method_source (1.0.0)
182182
mini_mime (1.1.5)
183183
mini_portile2 (2.8.9)
@@ -227,7 +227,7 @@ GEM
227227
puma (6.4.0)
228228
nio4r (~> 2.0)
229229
racc (1.8.1)
230-
rack (3.2.1)
230+
rack (3.2.4)
231231
rack-proxy (0.7.7)
232232
rack
233233
rack-session (2.1.1)
@@ -276,7 +276,7 @@ GEM
276276
rdoc (6.14.2)
277277
erb
278278
psych (>= 4.0.0)
279-
regexp_parser (2.8.1)
279+
regexp_parser (2.11.3)
280280
reline (0.6.2)
281281
io-console (~> 0.5)
282282
rexml (3.2.6)
@@ -428,7 +428,7 @@ DEPENDENCIES
428428
amazing_print
429429
benchmark
430430
bootsnap
431-
capybara
431+
capybara (~> 3.40)
432432
capybara-screenshot
433433
coveralls
434434
cypress-on-rails (~> 1.19)

0 commit comments

Comments
 (0)