Explorar el Código

added testcase for issue #26

tags/0.3.0
Alexander Lang hace 16 años
padre
commit
c12ba296ab
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  1. +10
    -0
      test/mustache_spec.rb

+ 10
- 0
test/mustache_spec.rb Ver fichero

@@ -26,6 +26,16 @@ describe "mustache" do
before(:all) do before(:all) do
@mustache = File.read(__DIR__ + "/../mustache.js") @mustache = File.read(__DIR__ + "/../mustache.js")
end end
it "should return the same when invoked multiple times" do
js = <<-JS
#{@mustache}
Mustache.to_html("x")
print(Mustache.to_html("x"));
JS
run_js(js).should == "x\n"
end


it "should clear the context after each run" do it "should clear the context after each run" do
js = <<-JS js = <<-JS


Cargando…
Cancelar
Guardar