Skip to content

Commit

Permalink
Revert "Run the cucumber test in unbundled environment" (#4143)
Browse files Browse the repository at this point in the history
  • Loading branch information
p-datadog authored Nov 21, 2024
1 parent 7a345da commit be5f5ac
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions spec/datadog/core/environment/execution_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -189,18 +189,16 @@ def test_it_does_something_useful
it 'returns true' do
Dir.mktmpdir do |dir|
Dir.chdir(dir) do
Bundler.with_unbundled_env do
FileUtils.mkdir_p('features/support')
FileUtils.mkdir_p('features/support')

# Add our script to `env.rb`, which is always run before any feature is executed.
File.write('features/support/env.rb', repl_script)
# Add our script to `env.rb`, which is always run before any feature is executed.
File.write('features/support/env.rb', repl_script)

_, err, = Bundler.with_unbundled_env do
Open3.capture3('ruby', stdin_data: script)
end

expect(err).to include('ACTUAL:true')
_, err, = Bundler.with_unbundled_env do
Open3.capture3('ruby', stdin_data: script)
end

expect(err).to include('ACTUAL:true')
end
end
end
Expand Down

0 comments on commit be5f5ac

Please sign in to comment.