Permalink
Browse files

update to rspec 2.0

  • Loading branch information...
1 parent d53ee66 commit 9c4537b32c3860515d13d5c2e43a1bd2634d7b7d @cowboyd committed Oct 26, 2010
Showing with 8 additions and 18 deletions.
  1. 0 spec/spec.opts → .rspec
  2. +6 −6 lib/v8/cli.rb
  3. +2 −2 spec/spec_helper.rb
  4. +0 −10 tasks/spec.rake
File renamed without changes.
View
@@ -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)
View
@@ -1,10 +1,10 @@
begin
- require 'spec'
+ require 'rspec'
rescue LoadError
require 'rubygems' unless ENV['NO_RUBYGEMS']
gem 'rspec'
- require 'spec'
+ require 'rspec'
end
#
View
@@ -1,10 +0,0 @@
-begin
- require 'spec/rake/spectask'
- Spec::Rake::SpecTask.new(:spec) do |spec|
- spec.libs << 'lib' << 'spec'
- spec.spec_files = FileList['spec/**/*_spec.rb']
- end
- task :spec => :compile
-rescue LoadError => e
- puts "unable to run specs from rake. gem install rspec"
-end

0 comments on commit 9c4537b

Please sign in to comment.