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:
parent
ad9644f51d
commit
340065002d
1 changed files with 19 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue