Skip to content
This repository has been archived by the owner on Aug 18, 2018. It is now read-only.

Commit

Permalink
Merge branch 'master' of git@github.com:jbarnette/johnson
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Jun 1, 2008
2 parents a83f267 + c7bc74d commit 19370c4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Rakefile
Expand Up @@ -34,13 +34,14 @@ namespace :test do
t.test_files = FileList['todo/**/*_test.rb']
t.verbose = true
end
Rake::TestTask.new("jspec") do |t|

task :jspec => :extensions do
$LOAD_PATH << File.expand_path(File.dirname(__FILE__) + "/lib")
Johnson.send(:remove_const, :VERSION)
require 'johnson'
Dir['test/jspec/**/*_spec.js'].each do |file|
rt = Johnson::Runtime.new
rt.load(file)
require "johnson"

Dir["test/jspec/**/*_spec.js"].each do |file|
Johnson::Runtime.new.load(file)
end
end
end
Expand All @@ -57,7 +58,6 @@ task :extension => :build
# gem depends on the native extension actually building
Rake::Task[:gem].prerequisites << :extensions

desc "Our johnson requires extensions."
task :extensions => ["lib/johnson/spidermonkey.#{kind}"]

namespace :extensions do
Expand Down

0 comments on commit 19370c4

Please sign in to comment.