Sha256: d19767c1de315794a45db2220862fbe1e49bf18f7b3f2cfe26685f1a2e6e1a5a

Contents?: true

Size: 693 Bytes

Versions: 4

Compression:

Stored size: 693 Bytes

Contents

# Set up
#-----------------------------------------------------------------------------#

require 'pathname'
ROOT = Pathname.new(File.expand_path('../../', __FILE__))
$LOAD_PATH.unshift((ROOT + 'lib').to_s)
$LOAD_PATH.unshift((ROOT + 'spec').to_s)

require 'bundler/setup'
require 'bacon'
require 'mocha-on-bacon'
require 'pretty_bacon'
require 'act'

# Silence the output
#--------------------------------------#

module Act
  module UI
    @output = ''
    @warnings = ''

    class << self
      attr_accessor :output
      attr_accessor :warnings
    end

    def self.puts(message)
      @output << message
    end

    def self.warn(message)
      @warnings << message
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
act-0.0.5 spec/spec_helper.rb
act-0.0.4 spec/spec_helper.rb
act-0.0.3 spec/spec_helper.rb
act-0.0.2 spec/spec_helper.rb