Sha256: 8184e51c84cb79dbc78338d270de43c5a6c5ae9be2384029945f833782bf87e8
Contents?: true
Size: 514 Bytes
Versions: 2
Compression:
Stored size: 514 Bytes
Contents
ENV['RAILS_ENV'] = ENV['ENV'] = 'test' RSpec.configure do |c| c.mock_with :mocha c.before(:each) { Time.now.utc.tap { | now| Time.stubs(:now).returns(now) } } end require 'travis/cli' require 'mocha' module Mock class Shell def messages @messages ||= [] end def say(*args) messages << args end alias :error :say end end module Kernel def capture_stdout out = StringIO.new $stdout = out yield return out.string ensure $stdout = STDOUT end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
travis-cli-0.0.2 | spec/spec_helper.rb |
travis-cli-0.0.1 | spec/spec_helper.rb |