public
Description: Johnson wraps JavaScript in a loving Ruby embrace.
Homepage: http://github.com/jbarnette/johnson/wikis
Clone URL: git://github.com/jbarnette/johnson.git
Kinda unbroke test:jspec.
jbarnette (author)
Sat May 31 21:53:49 -0700 2008
commit  c7bc74d8b08bd2cc53adeae2051194684321b46b
tree    17d95e4823850bd35b8134f4e6d24b8e50609b94
parent  dc9c9cb4769a1acb15be6c089dd324e24fa75584
...
34
35
36
37
 
 
38
39
40
41
42
43
 
 
 
 
44
45
46
...
57
58
59
60
61
62
63
...
34
35
36
 
37
38
39
40
 
 
 
 
41
42
43
44
45
46
47
...
58
59
60
 
61
62
63
0
@@ -34,13 +34,14 @@ namespace :test do
0
     t.test_files = FileList['todo/**/*_test.rb']
0
     t.verbose = true
0
   end
0
-  Rake::TestTask.new("jspec") do |t|
0
+  
0
+  task :jspec => :extensions do
0
     $LOAD_PATH << File.expand_path(File.dirname(__FILE__) + "/lib")
0
     Johnson.send(:remove_const, :VERSION)
0
-    require 'johnson'
0
-    Dir['test/jspec/**/*_spec.js'].each do |file|
0
-      rt = Johnson::Runtime.new
0
-      rt.load(file)
0
+    require "johnson"
0
+
0
+    Dir["test/jspec/**/*_spec.js"].each do |file|
0
+      Johnson::Runtime.new.load(file)
0
     end
0
   end
0
 end
0
@@ -57,7 +58,6 @@ task :extension => :build
0
 # gem depends on the native extension actually building
0
 Rake::Task[:gem].prerequisites << :extensions
0
 
0
-desc "Our johnson requires extensions."
0
 task :extensions => ["lib/johnson/spidermonkey.#{kind}"]
0
 
0
 namespace :extensions do

Comments