Sha256: 74023712114f128d1a6d56c5fe63a97ba9fc915ed5541c6255253e7d5a77e0d6

Contents?: true

Size: 1.06 KB

Versions: 3

Compression:

Stored size: 1.06 KB

Contents

if RUBY_VERSION <= '1.8.7'
else
  require "simplecov"
  require "simplecov-rcov"
  SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
  SimpleCov.start
end

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require "rspec"
require "lapidary"
require "tempfile"

# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}

RSpec.configure do |config|
  
end

module Lapidary
  LAPIDARY_HOME = File.expand_path(File.dirname(__FILE__) + "/..")
  BIN_DIR = "#{LAPIDARY_HOME}/bin"
  LIB_DIR = "#{LAPIDARY_HOME}/lib"
  RUBY_CMD = "ruby -I #{LIB_DIR}"
  REDIRECT = {}
end

Lapidary.logger = Logger.new(STDERR)
if File.exist?('/tmp/lapidary.debug') then
  Lapidary.logger.level = Logger::DEBUG
  Lapidary::REDIRECT[:stdout] = nil
  Lapidary::REDIRECT[:stderr] = nil
else
  Lapidary.logger.level = Logger::ERROR
  Lapidary::REDIRECT[:stdout] = "> /dev/null"
  Lapidary::REDIRECT[:stderr] = "2> /dev/null"
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lapidary-0.1.2 spec/spec_helper.rb
lapidary-0.1.1 spec/spec_helper.rb
lapidary-0.1.0 spec/spec_helper.rb