Sha256: b69a0c11955a505cdaf653ceaf785ea6cf3a336d0d7b584eddaa81487f27712b

Contents?: true

Size: 314 Bytes

Versions: 3

Compression:

Stored size: 314 Bytes

Contents

gem 'rspec', '~> 2.4'
require 'rspec'
require 'json2xxx/version'

include Json2xxx

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
json2xxx-0.4.0 spec/spec_helper.rb
json2xxx-0.3.0 spec/spec_helper.rb
json2xxx-0.2.0 spec/spec_helper.rb