require 'pry'
require 'ripper'
require 'fakefs/spec_helpers'

# silence CLI output
RSpec.configure do |config|
  original_stderr = $stderr
  original_stdout = $stdout

  config.before(:all, silent_cli: true) do
    # Redirect stderr and stdout
    $stderr = File.open(File::NULL, "w")
    $stdout = File.open(File::NULL, "w")
  end

  config.after(:all, silent_cli: true) do
    $stderr = original_stderr
    $stdout = original_stdout
  end
end

Dir["#{Dir.pwd}/spec/support/**/*.rb"].each { |f| require f }

require 'pry'
require 'ripper'
require 'fakefs/spec_helpers'

# silence CLI output
RSpec.configure do |config|
  original_stderr = $stderr
  original_stdout = $stdout

  config.before silent_cli: true do
    # Redirect stderr and stdout
    $stderr = File.open(File::NULL, "w")
    $stdout = File.open(File::NULL, "w")
  end

  config.after silent_cli: true do
    $stderr = original_stderr
    $stdout = original_stdout
  end
end

Dir["#{Dir.pwd}/spec/support/**/*.rb"].each { |f| require f }

FIX remove :all options for specs silent CLI config
FIX remove :all options for specs silent CLI config
