Permalink
Browse files

add redjs suite at v0.6.0

  • Loading branch information...
1 parent 823bb56 commit cd7d5e7b941563a70efee2384643d7befbc26ada @cowboyd committed Apr 20, 2012
Showing with 16 additions and 3 deletions.
  1. +2 −1 Gemfile
  2. +5 −2 Rakefile
  3. +9 −0 spec/redjs_spec.rb
View
@@ -1,2 +1,3 @@
source 'http://rubygems.org'
-gemspec
+gemspec
+gem 'redjs', :git => 'git://github.com/cowboyd/redjs.git', :tag => "v0.6.0", :group => :test
View
@@ -13,11 +13,14 @@ task :clean do
sh "rm -rf lib/v8/*.bundle lib/v8/*.so"
end
-Rake::ExtensionTask.new("v8", eval(File.read("therubyracer.gemspec"))) do |ext|
+Rake::ExtensionTask.new("v8", eval(File.read("therubyracer.gemspec"))) do |ext|
ext.lib_dir = "lib/v8"
ext.source_pattern = "*.{cpp,h}"
end
-RSpec::Core::RakeTask.new(:spec)
+RSpec::Core::RakeTask.new(:spec) do |spec|
+ spec.rspec_opts = ['--color', "--format documentation"]
+end
+
View
@@ -0,0 +1,9 @@
+require 'spec_helper'
+require 'redjs/load_specs'
+module RedJS
+ Context = V8::Context
+ Error = V8::JSError
+end
+describe V8::Context do
+ it_behaves_like 'RedJS::Context'
+end

0 comments on commit cd7d5e7

Please sign in to comment.