soml-parser/test/setup.rb

24 lines
563 B
Ruby
Raw Normal View History

2014-06-04 18:31:25 +02:00
require 'simplecov'
require 'rubygems'
require 'bundler'
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
2014-06-04 19:51:25 +02:00
2014-06-04 18:47:55 +02:00
require 'parser'
2014-06-04 19:51:25 +02:00
require "minitest"
2014-06-04 18:47:55 +02:00
require "minitest/autorun"
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'test'))
2014-06-04 18:31:25 +02:00