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

23 lines
407 B
Ruby
Raw Normal View History

2009-10-14 23:51:50 -04:00
begin
2010-10-26 11:49:23 -04:00
require 'rspec'
2009-10-14 23:51:50 -04:00
rescue LoadError
require 'rubygems' unless ENV['NO_RUBYGEMS']
gem 'rspec'
2010-10-26 11:49:23 -04:00
require 'rspec'
2009-10-14 23:51:50 -04:00
end
2009-11-14 00:05:52 -05:00
#
# $: is the load path $LOAD_PATH
#
2009-10-14 23:51:50 -04:00
$:.unshift(File.dirname(__FILE__) + '/../lib')
2010-06-02 09:10:24 -04:00
$:.unshift(File.dirname(__FILE__) + '/../contrib')
2009-11-14 00:05:52 -05:00
$:.unshift(File.dirname(__FILE__) + '/..')
2009-10-14 23:51:50 -04:00
require 'v8'
require 'erb'
def rputs(msg)
puts "<pre>#{ERB::Util.h(msg)}</pre>"
$stdout.flush
end