Skip to content
Browse files

due to redparse changes, empty form now returns

an empty sequencenode instead of varlikenode['nil']
so, I gotta update the specific hack for that (empty) input
  • Loading branch information...
1 parent d4cf3c7 commit 895bd818f3bbdd0444d2b9ddcfe5dc48943d0812 @calebc calebc committed Jun 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/test_form.rb
View
2 test/test_form.rb
@@ -101,7 +101,7 @@ def check(code,pre="\n",post="\n")
begin
as_tree=RedParse.new(" \n"+code).parse
- as_tree=RedParse::VarLikeNode["nil", {:@value=>nil}] if RedParse::NopNode===as_tree
+ as_tree=RedParse::SequenceNode[] if RedParse::NopNode===as_tree
rescue Exception=>treeexc
0
end

0 comments on commit 895bd81

Please sign in to comment.
Something went wrong with that request. Please try again.