1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

fix the --selftest option to load specs relative to the bin file

This commit is contained in:
Charles Lowell 2012-02-17 09:09:07 -06:00
parent ad9644f51d
commit 340065002d

View file

@ -63,10 +63,11 @@ module V8
def self.test
begin
require 'rubygems'
require 'rspec'
specs = File.expand_path('../../../spec', __FILE__)
$:.unshift specs
ARGV.clear
ARGV << File.dirname(__FILE__) + '/../../spec/'
ARGV << specs
::RSpec::Core::Runner.autorun
exit(0)
rescue LoadError => e