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