Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Number Category in YAML #1070

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions test/source/_posts/2013-05-10-number-category.textile
@@ -0,0 +1,7 @@
---
layout: default
title: Number Category in YAML
category: 2013
---

Please make me pass
5 changes: 5 additions & 0 deletions test/test_post.rb
Expand Up @@ -422,6 +422,11 @@ def do_render(post)
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")
Expand Down