Permalink
Browse files

Failing test for a bug with erb in erb

  • Loading branch information...
1 parent 430b5c7 commit b51d4a06c5de7922174d2c2873a180827d1bd12d @JoshCheek committed Jul 3, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 spec/parser_spec.rb
View
5 spec/parser_spec.rb
@@ -125,4 +125,9 @@ def parsed(text)
invisible_in('<% invisible do %>\'a\'\\<% end %>').should == ['\'a\'\\']
end
end
+
+ it 'ignores erb tags inside erb blocks' do
+ parsed("a<% s='<% visible { %>b<% } %>' %>c").should == "ac\n"
+ parsed("a<% s='<% invisible { %>b<% } %>' %>c").should == "ac\n"
+ end
end

0 comments on commit b51d4a0

Please sign in to comment.