Sha256: f8bbf714849a228586d027d2e074ef53e9d932ddb2dbf6ec389aa9df32998507

Contents?: true

Size: 456 Bytes

Versions: 1

Compression:

Stored size: 456 Bytes

Contents

require 'wordless/cli'
require 'fakeweb'
require 'thor'

RSpec.configure do |config|
  FakeWeb.allow_net_connect = false
  FileUtils.mkdir('tmp') unless File.directory? 'tmp'

  # utility to log commands output or errors
  def capture(stream)
    begin
      stream = stream.to_s
      eval "$#{stream} = StringIO.new"
      yield
      result = eval("$#{stream}").string
    ensure
      eval("$#{stream} = #{stream.upcase}")
    end
    result
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wordless-0.3.0 spec/spec_helper.rb