Add tests for the tokenizer using RubyRacer

This commit is contained in:
wycats
2010-11-25 11:53:41 -08:00
parent 4b2e543d2e
commit 83fa737e04
3 changed files with 145 additions and 1 deletions
+10 -1
View File
@@ -1,6 +1,15 @@
require "rubygems"
require "bundler/setup"
file "lib/handlebars/parser.js" => "src/handlebars.yy" do
system "jison src/handlebars.yy"
sh "mv handlebars.js lib/handlebars/parser.js"
end
task :default => "lib/handlebars/parser.js"
task :build => "lib/handlebars/parser.js"
task :test => :build do
system "rspec -cfs spec"
end
task :default => [:build, :test]