Skip to content

Commit 32851b1

Browse files
committed
Fix execution spec with cucumber on ruby 3.4
Cucumber is broken on ruby 3.4 currently, requires the fix in cucumber/cucumber-ruby#1757 (not released yet). Use their master from git on ruby 3.4 and unpend the test.
1 parent e651ea2 commit 32851b1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

spec/datadog/core/environment/execution_spec.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,13 @@ def test_it_does_something_useful
173173
174174
gemfile(true) do
175175
source 'https://rubygems.org'
176-
gem 'cucumber', '>= 3'
176+
if RUBY_VERSION >= '3.4'
177+
# Cucumber is broken on Ruby 3.4, requires the fix in
178+
# https://github.com/cucumber/cucumber-ruby/pull/1757
179+
gem 'cucumber', '>= 3', git: 'https://github.com/cucumber/cucumber-ruby'
180+
else
181+
gem 'cucumber', '>= 3'
182+
end
177183
end
178184
179185
load Gem.bin_path('cucumber', 'cucumber')

0 commit comments

Comments
 (0)