Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Aug 19, 2024
1 parent 37e0a90 commit 3e0c338
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ group :coverage do
end

if defined?(RUBY_PLATFORM) && RUBY_PLATFORM == 'java'
puts 'JRUBY detected, installing tempfile'
gem 'tempfile.rb', require: false
end

Expand Down
2 changes: 2 additions & 0 deletions spec/rspec/support/spec/stderr_splitter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@
# This is essentially what the `to_stderr_from_any_process` matcher attempts
# to do in CaptureStreamToTempfile.
it 'is able to restore the stream from a cloned StdErrSplitter' do
puts "=> #{RUBY_ENGINE}"
if RSpec::Support::Ruby.jruby? && Tempfile.new("foo").is_a?(File) == false
puts 'JRUBY detected, requiring tempfile'
require 'tempfile'
end

Expand Down

0 comments on commit 3e0c338

Please sign in to comment.