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
+16
View File
@@ -0,0 +1,16 @@
require "v8"
RSpec.configure do |config|
config.before(:all) do
@context = V8::Context.new
@context['exports'] = nil
@context.eval("Handlebars = {}");
@context.load('lib/handlebars/ast.js')
@context.load('lib/handlebars/jison_ext.js')
@context.load('lib/handlebars/handlebars_lexer.js')
@context.load('lib/handlebars/printer.js')
@context.load('lib/handlebars/parser.js')
@context.load('lib/handlebars.js')
end
end