Skip to content

Commit

Permalink
{{{{invalid}}}}
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Mar 25, 2010
1 parent 5991ccd commit 4b242dd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/mustache_test.rb
Expand Up @@ -314,9 +314,15 @@ def test_tokenize
assert_equal Mustache::Parser.new.compile(string), Mustache.tokenize(string)
end

def xtest_lots_of_staches
def test_lots_of_staches
template = "{{{{foo}}}}"
assert_equal "defunkt", Mustache.render(template, :foo => "defunkt")

begin
Mustache.render(template, :foo => "defunkt")
rescue => e
end

assert e.message.include?("Illegal content in tag")
end

def test_liberal_tag_names
Expand Down

0 comments on commit 4b242dd

Please sign in to comment.