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
adding a jspec test task
tenderlove (author)
Sat May 31 17:59:20 -0700 2008
commit  c8364cebcf1ef191dac486e31b111fced3a630e6
tree    3ee566a7253dd5f1d5ad00fe4685b04acc92bbe8
parent  8f379af3241e2b6cb791eec868d41be20d736255
...
34
35
36
 
 
 
 
 
 
 
 
 
37
38
39
...
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
0
@@ -34,6 +34,15 @@ 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
+    $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
+    end
0
+  end
0
 end
0
 
0
 # make sure the C bits are up-to-date when testing

Comments