From c12ba296ab5869a863d149d03d8838f9d6643222 Mon Sep 17 00:00:00 2001 From: Alexander Lang Date: Sun, 2 May 2010 15:34:54 +0200 Subject: [PATCH] added testcase for issue #26 --- test/mustache_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/mustache_spec.rb b/test/mustache_spec.rb index e9ddddd..eceef98 100644 --- a/test/mustache_spec.rb +++ b/test/mustache_spec.rb @@ -26,6 +26,16 @@ 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} + 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 js = <<-JS