1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00
therubyracer/spec/spec_helper.rb
2010-06-03 14:05:37 +03:00

22 lines
405 B
Ruby

begin
require 'spec'
rescue LoadError
require 'rubygems' unless ENV['NO_RUBYGEMS']
gem 'rspec'
require 'spec'
end
#
# $: is the load path $LOAD_PATH
#
$:.unshift(File.dirname(__FILE__) + '/../lib')
$:.unshift(File.dirname(__FILE__) + '/../contrib')
$:.unshift(File.dirname(__FILE__) + '/..')
require 'v8'
require 'erb'
def rputs(msg)
puts "<pre>#{ERB::Util.h(msg)}</pre>"
$stdout.flush
end