Skip to content

Commit

Permalink
require stringio to prevent NameError
Browse files Browse the repository at this point in the history
NameError:
  uninitialized constant SilenceStdout::StringIO
  • Loading branch information
fidel committed Jan 3, 2025
1 parent acf1a60 commit 4e87a5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions support/helpers/silence_stdout.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require "stringio"

module SilenceStdout
def silence_stdout
$stdout = StringIO.new
Expand Down

0 comments on commit 4e87a5e

Please sign in to comment.