Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
update to rspec 2.0
  • Loading branch information
cowboyd committed Oct 26, 2010
1 parent d53ee66 commit 9c4537b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 18 deletions.
File renamed without changes.
12 changes: 6 additions & 6 deletions lib/v8/cli.rb
Expand Up @@ -57,17 +57,17 @@ def self.load(cxt, libfile)
puts e.backtrace(:javascript)
rescue StandardError => e
puts e
end
end
end

def self.test
begin
require 'rubygems'
require 'spec'
parser = ::Spec::Runner::OptionParser.new($stderr, $stdout)
parser.order!([File.dirname(__FILE__) + '/../../spec/'])
::Spec::Runner.use(parser.options)
exit parser.options.run_examples
require 'rspec'
ARGV.clear
ARGV << File.dirname(__FILE__) + '/../../spec/'
::RSpec::Core::Runner.autorun
exit(0)
rescue LoadError => e
puts "selftest requires rspec to be installed (gem install rspec)"
exit(1)
Expand Down
4 changes: 2 additions & 2 deletions spec/spec_helper.rb
@@ -1,10 +1,10 @@

begin
require 'spec'
require 'rspec'
rescue LoadError
require 'rubygems' unless ENV['NO_RUBYGEMS']
gem 'rspec'
require 'spec'
require 'rspec'
end

#
Expand Down
10 changes: 0 additions & 10 deletions tasks/spec.rake

This file was deleted.

0 comments on commit 9c4537b

Please sign in to comment.