]> git.wincent.com - wikitext.git/commit
Fix handling of parse-time overrides
authorWincent Colaiuta <win@wincent.com>
Thu, 24 Apr 2008 08:48:17 +0000 (10:48 +0200)
committerWincent Colaiuta <win@wincent.com>
Thu, 24 Apr 2008 08:48:17 +0000 (10:48 +0200)
commita04fa3586b01cfd972d28fd113d90de60710981a
treea90a02a372295e7dc4d2fdfd7b2f6d88b5dca834
parent5131425ab42ce7e60be83f06d5904c08e48023f1
Fix handling of parse-time overrides

Before pulling an override out of a hash we should first check that the
corresponding key actually exists; otherwise we end up getting a nil
value. This nil value was enough to make the old specs pass, but they
weren't really testing what I though they were testing, so fix the
specs up too.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
ext/parser.c
spec/indentation_spec.rb
spec/wikitext_spec.rb