new test case: numbers in categories

This commit is contained in:
Rafael Revi 2013-05-10 02:20:43 -04:00
parent 012717ed04
commit 528c94e481
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,7 @@
---
layout: default
title: Number Category in YAML
category: 2013
---
Please make me pass

View File

@ -422,6 +422,11 @@ class TestPost < Test::Unit::TestCase
post = setup_post("2009-01-27-empty-categories.textile")
assert_equal [], post.categories
end
should "recognize number category in yaml" do
post = setup_post("2013-05-10-number-category.textile")
assert post.categories.include?('2013')
end
should "recognize tag in yaml" do
post = setup_post("2009-05-18-tag.textile")