Commit Graph

7 Commits

Author SHA1 Message Date
Parker Moore 736a800f0e features: validate the exit status of 0 for successful calls 2016-01-18 11:52:31 -08:00
Kevin Locke bb9462f12f Whole-post excerpts should match the post content
When a post does not contain an excerpt_separator, meaning the excerpt
includes the entire post, the excerpt should contain exactly the post
content.

This is desirable both from a correctness standpoint, that the excerpt
should not introduce any new content, and more practically to allow fast
and easy detection of whole-post excerpts in Liquid templates using
`post.excerpt == post.content`.  A common use-case is deciding whether
to render "Read More" links on a page containing post excerpts.

This commit does exactly that.  It avoids adding additional newlines to
the excerpt content when the excerpt includes the whole post and adds
tests to ensure that this behavior is correct and preserved going
forward.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2015-10-01 13:58:00 -07:00
Parker Moore 2b29e09177 Fix some cucumber features. 2015-01-17 16:52:12 -08:00
Martin Charles f9375d5660 Cleaned up cucumbers 2014-04-23 13:40:21 -04:00
Slava Pavlutin 2f79262f80 Fix tables alignments in Cucumber features 2014-03-01 23:10:05 +04:00
Parker Moore a62d868c74 s/sitej/site/ props @benbalter 2013-07-22 14:57:44 +02:00
Parker Moore 5d6b755d7d feature maybe? 2013-07-22 13:42:40 +02:00