Skip to content

Commit

Permalink
Fix cucumber
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyCTHsu committed Feb 13, 2025
1 parent bf3b3c2 commit fcb2eba
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions spec/datadog/core/environment/execution_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,26 +170,12 @@ def test_it_does_something_useful

let(:script) do
<<-'RUBY'
# Under Ruby 3.0 through 3.2 there is a weird error that occurs
# in CI where two copies of psych get loaded in the same process,
# and even more strangely the first version is a newer one from
# gem and the second one is the older one from Ruby standard
# library. Try to work around this situation by forcing psych
# to be loaded from (some) gem.
# We still don't know exactly what is causing the original issue.
gem 'psych'
require 'bundler/inline'
gemfile(true) do
source 'https://rubygems.org'
if RUBY_VERSION >= '3.4'
# Cucumber is broken on Ruby 3.4, requires the fix in
# https://github.com/cucumber/cucumber-ruby/pull/1757
gem 'cucumber', '>= 3', git: 'https://github.com/cucumber/cucumber-ruby'
else
gem 'cucumber', '>= 3'
end
gem 'cucumber', '>= 3', '<= 9.2.1'
end
load Gem.bin_path('cucumber', 'cucumber')
Expand Down

0 comments on commit fcb2eba

Please sign in to comment.