Sha256: ba9642ca22efc2488c353437f483da97b4c10ae4253cc7720655bc097e407bdb

Contents?: true

Size: 624 Bytes

Versions: 9

Compression:

Stored size: 624 Bytes

Contents

$LOAD_PATH.unshift 'lib'
$ruco_colors = true

require 'ruco'
require 'timeout'
require 'tempfile'

silence_warnings do
  Ruco::Editor::Colors::DEFAULT_THEME = 'spec/fixtures/test.tmTheme'
  Ruco::OLD_VERSION = Ruco::VERSION
  Ruco::VERSION = '0.0.0' # so tests dont fail if version gets longer
end

class Tempfile
  def self.string_as_file(data)
    result = nil
    Tempfile.open('foo') do |f|
      f.print data
      f.close
      result = yield(f.path)
    end
    result
  end
end

class Time
  def self.benchmark
    t = Time.now.to_f
    yield
    Time.now.to_f - t
  end
end

def log(text)
  puts "LOG: #{text}"
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ruco-0.2.18 spec/spec_helper.rb
ruco-0.2.17 spec/spec_helper.rb
ruco-0.2.16 spec/spec_helper.rb
ruco-0.2.15 spec/spec_helper.rb
ruco-0.2.14 spec/spec_helper.rb
ruco-0.2.13 spec/spec_helper.rb
ruco-0.2.12 spec/spec_helper.rb
ruco-0.2.11 spec/spec_helper.rb
ruco-0.2.10 spec/spec_helper.rb