Sha256: b0ee07a4b9caa92d57ccccdbef83b24bafed72fc5175e674d4b3e64129cf93dd
Contents?: true
Size: 776 Bytes
Versions: 4
Compression:
Stored size: 776 Bytes
Contents
require 'rspec' if RUBY_VERSION < '1.9' require 'rspec/autorun' else require 'simplecov' if defined?(GATHER_RSPEC_COVERAGE) SimpleCov.start do add_filter "/spec/" add_filter "/vendor/" end end end require File.expand_path(File.dirname(__FILE__) + '/../lib/imap/backup') module HighLineTestHelpers def prepare_highline @input = stub('stdin', :eof? => false) # default gets stub @input.stub!(:gets).with().and_return("q\n") @output = StringIO.new Imap::Backup::Configuration::Setup.highline = HighLine.new(@input, @output) [@input, @output] end end module InputOutputTestHelpers def capturing_output output = StringIO.new $stdout = output yield output.string ensure $stdout = STDOUT end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
imap-backup-1.0.9 | spec/spec_helper.rb |
imap-backup-1.0.8 | spec/spec_helper.rb |
imap-backup-1.0.7 | spec/spec_helper.rb |
imap-backup-1.0.6 | spec/spec_helper.rb |