Sha256: e4f137c58c61e9ad68407723fe0432479a96b8eefc7770d19f2753a4203e9548
Contents?: true
Size: 722 Bytes
Versions: 1
Compression:
Stored size: 722 Bytes
Contents
require 'rspec' require 'stringio' # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. #Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} RSpec.configure do |config| config.formatter = :documentation config.color = true end TESTFILES = File.dirname(__FILE__) + "/testfiles" module Kernel # from: http://thinkingdigitally.com/archive/capturing-output-from-puts-in-ruby/ 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubabel-0.1.1 | spec/spec_helper.rb |