RSpec::Support::WithIsolatedStdErr

Public Instance Methods

with_isolated_stderr() click to toggle source
# File lib/rspec/support/spec/with_isolated_stderr.rb, line 5
def with_isolated_stderr
  original = $stderr
  $stderr = StringIO.new
  yield
ensure
  $stderr = original
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.