Sha256: d41d6733194c9127fd2acd6e716c98119f9b14448c981be895456a0ff65d92b5

Contents?: true

Size: 321 Bytes

Versions: 3

Compression:

Stored size: 321 Bytes

Contents

gem 'rspec', '~> 2.4'
require 'rspec'
require 'pingdom/cli/version'

include Pingdom::Cli

def capture_stdout
  out = StringIO.new
  $stdout = out
  yield
  return out.string
ensure
  $stdout = STDOUT
end

def capture_stderr
  out = StringIO.new
  $stderr = out
  yield
  return out.string
ensure
  $stderr = STDERR
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pingdom-cli-0.3.0 spec/spec_helper.rb
pingdom-cli-0.2.0 spec/spec_helper.rb
pingdom-cli-0.1.0 spec/spec_helper.rb