diff --git a/Gemfile b/Gemfile index 814690c..5192408 100644 --- a/Gemfile +++ b/Gemfile @@ -1,2 +1,3 @@ source 'http://rubygems.org' -gemspec \ No newline at end of file +gemspec +gem 'redjs', :git => 'git://github.com/cowboyd/redjs.git', :tag => "v0.6.0", :group => :test \ No newline at end of file diff --git a/Rakefile b/Rakefile index e377274..e4372b5 100644 --- a/Rakefile +++ b/Rakefile @@ -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 + diff --git a/spec/redjs_spec.rb b/spec/redjs_spec.rb new file mode 100644 index 0000000..328aa94 --- /dev/null +++ b/spec/redjs_spec.rb @@ -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 \ No newline at end of file