Sha256: 83c22a7bbb6a4f5960799ab91cf7e1e3a6f83175fcaa908d675abcca93b23d2c
Contents?: true
Size: 512 Bytes
Versions: 1
Compression:
Stored size: 512 Bytes
Contents
require "rubygems" require "bundler/setup" require "rspec" require "webmock/rspec" require "stringio" RSpec.configure do |config| def process(stdin_str = '') begin require 'stringio' $o_stdin, $o_stdout, $o_stderr = $stdin, $stdout, $stderr $stdin, $stdout, $stderr = StringIO.new(stdin_str), StringIO.new, StringIO.new yield {:stdout => $stdout.string, :stderr => $stderr.string} ensure $stdin, $stdout, $stderr = $o_stdin, $o_stdout, $o_stderr end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
morale-0.1.0 | spec/spec_helper.rb |