Sha256: f8b2b535297653a0f5df1bd21c7f1da7b3621ac73215d3385d1df7734e0b26d4

Contents?: true

Size: 477 Bytes

Versions: 3

Compression:

Stored size: 477 Bytes

Contents

ENV['RAILS_ENV'] = ENV['ENV'] = 'test'

require 'travis/deploy'
require 'webmock/rspec'

RSpec.configure do |c|
  c.before(:each) { Time.stub(:now => Time.now.utc) }
end

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

3 entries across 3 versions & 1 rubygems

Version Path
travis-deploy-0.2.1 spec/spec_helper.rb
travis-deploy-0.2.0 spec/spec_helper.rb
travis-deploy-0.1.0 spec/spec_helper.rb