-
Notifications
You must be signed in to change notification settings - Fork 211
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
Check post.categories
instead of post.category
#357
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implementation is fine! Would love to add a test to ensure singular key is tested.
spec/jekyll-feed_spec.rb
Outdated
expect(news_feed).to_not match "http://example.org/2015/08/08/stuck-in-the-middle.html" | ||
expect(category_feed).to match '<title type="html">My awesome site | News</title>' | ||
expect(category_feed).to match "http://example.org/updates/jekyll/2014/03/04/march-the-fourth.html" | ||
expect(category_feed).to match "March the fourth!" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we cover the category: jekyll
case too? The fixtures don't seem to have a post with the singular key name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fixtures don't seem to have a post with the singular key name
The existing test on master
uses a fixture post with a singular key name..
@jekyllbot: merge +fix |
Since
Jekyll::Document#data["categories"]
is generated fromdoc.data["category"]
.Closes #356