spec/spec_helper.rb
def silence_stderr
    old_stderr = $stderr
    $stderr = StringIO.new
    yield
  ensure
    $stderr = old_stderr
  end
# rspec-expectations config goes here. You can use an alternate
# assertion/expectation library such as wrong or the stdlib/minitest
# assertions if you prefer.
rspec-expectations config goes here. You can use an alternate
assertion/expectation library such as wrong or the stdlib/minitest
assertions if you prefer.
rspec - expectations config goes here . You can use an alternate assertion / expectation library such as wrong or the stdlib / minitest assertions if you prefer .
def silence_stderr
    old_stderr = $stderr
    $stderr = StringIO.new
    yield
  ensure
    $stderr = old_stderr
  end
def silence_stderr old_stderr = $stderr $stderr = StringIO . new yield ensure $stderr = old_stderr end
rspec-expectations config goes here.
rspec - expectations config goes here .