test/mote_test.rb in mote-1.1.4 vs test/mote_test.rb in mote-1.2.0

- old
+ new

@@ -137,9 +137,19 @@ scope do prepare do mote_cache.clear end + test "syntax errors" do + begin + mote("test/error.mote") + rescue SyntaxError => error + end + + assert_equal SyntaxError, error.class + assert error.message["test/error.mote:4: syntax error"] + end + test "helpers" do assert_equal " *\n *\n *\n", mote("test/basic.mote", :n => 3) end test "using functions in the context" do