Permalink
Browse files

Failing spec for line numbers after nested blocks

  • Loading branch information...
1 parent a4ac00f commit f8f33df42f7f7cf83c9fd425ddddc47a149b38f0 Grant Hutchins & Sabrina Staedt committed Oct 18, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 test/haml/engine_test.rb
View
@@ -87,6 +87,9 @@ class EngineTest < Test::Unit::TestCase
"foo\n:plain\n 1\n 2\n \#{raise 'foo'}" => ["foo", 5],
"= raise 'foo'\nfoo\nbar\nbaz\nbang" => ["foo", 1],
"- case 1\n\n- when 1\n - raise 'foo'" => ["foo", 4],
+ "- tap do\n - tap do\n text\n- raise 'foo'" => ["foo", 4],
+ "- tap do\n - tap do\n text\n - raise 'foo'" => ["foo", 4],
+ "- tap do\n - tap do\n text\n text\n- raise 'foo'" => ["foo", 5],
}
User = Struct.new('User', :id)

0 comments on commit f8f33df

Please sign in to comment.