Skip to content

Commit

Permalink
[Haml] Add some more tests for compile errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Sep 28, 2009
1 parent f1a6cc9 commit e1a9fd6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/haml/engine_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ class EngineTest < Test::Unit::TestCase
"%p(foo 'bar'\nbaz='bang')" => ["Invalid attribute list: \"(foo 'bar'\".", 1],
"%p(foo='bar'\nbaz 'bang'\nbip='bop')" => ["Invalid attribute list: \"(foo='bar' baz 'bang'\".", 2],
"%p{:foo => 'bar' :bar => 'baz'}" => :compile,
"%p{:foo => }" => :compile,
"%p{=> 'bar'}" => :compile,
"%p{:foo => 'bar}" => :compile,
"%p{'foo => 'bar'}" => :compile,
"%p{:foo => 'bar\"}" => :compile,

# Regression tests
"- raise 'foo'\n\n\n\nbar" => ["foo", 1],
Expand Down

0 comments on commit e1a9fd6

Please sign in to comment.