Clayton Smith
5c797ba136
Add webrick as a dependency ( #8524 )
...
Merge pull request 8524
2021-01-10 16:25:28 -05:00
Ashwin Maroli
9f46819606
There are 59 test posts now
2019-02-17 12:49:46 +05:30
Kyle Barbour
88d63c9303
Excerpt handling of custom and intermediate tags ( #7382 )
...
Merge pull request 7382
2019-01-04 04:30:29 -05:00
Ashwin Maroli
9adac3a11e
Fix Rubocop offences in test files ( #7128 )
...
Merge pull request 7128
2018-07-12 10:21:23 -04:00
jekyllbot
0b6962cfe9
Use assert_include ( #7093 )
...
Merge pull request 7093
2018-06-23 16:57:35 -04:00
Kyle Barbour
b915c7577b
Add whitespace control to LIQUID_TAG_REGEX ( #7015 )
...
Merge pull request 7015
2018-05-17 18:22:32 -04:00
ashmaroli
a662bc24aa
Append appropriate closing tag to Liquid block in an excerpt ( #6724 )
...
Merge pull request 6724
2018-02-20 09:47:56 -05:00
Parker Moore
7cf5f51ca2
Enforce Style/FrozenStringLiteralComment. ( #6265 )
...
Merge pull request 6265
2017-08-03 21:27:32 -04:00
Anatoliy Yastreb
2cfcb23a49
Fix layout front-matter variables rendering. #6071 ( #6073 )
...
Merge pull request 6073
2017-06-14 15:05:38 -04:00
ashmaroli
7d7a312b33
Bump Rubocop to v0.48 ( #5997 )
...
Merge pull request 5997
2017-04-09 07:24:45 -04:00
Parker Moore
3e4dbc83e3
Attempt to alleviate strange Windows encoding error.
...
Error:
TestGeneratedSite#test_: generated sites should render latest post's content. :
Encoding::CompatibilityError: incompatible character encodings: IBM437 and UTF-8
C:/projects/jekyll/test/test_generated_site.rb:22:in `include?'
C:/projects/jekyll/test/test_generated_site.rb:22:in `block (2 levels) in <class:TestGeneratedSite>'
C:/projects/jekyll/test/test_generated_site.rb:34:in `instance_exec'
C:/projects/jekyll/test/test_generated_site.rb:34:in `block in create_test_from_should_hash'
2017-03-01 22:36:25 -05:00
Parker Moore
ca87c99a3c
Fix fmt issues in test for 'include a post with a abbreviated dates'
2017-03-01 22:08:21 -05:00
Parker Moore
8a0c0727ea
Failing test: abbreviated post dates are no longer read.
...
This is a regression introduced by https://github.com/jekyll/jekyll/pull/5609 .
2017-03-01 21:38:55 -05:00
Eldritch Cheese
875d55002b
Increased number of posts in test_generated_site to account for special chars test
2016-11-27 07:59:56 -05:00
Ashwin Maroli
0c234c90a9
TestGeneratedSite: add "|" to preserve newline
...
adding a pipe character ('|') preserves the formatting of
'expected_output' with a trailing newline bit, in windows.
2016-11-02 15:08:49 +05:30
Eloy Espinaco
9b09d8a8e8
Add support for indented link references on excerpt
...
Excerpt link reference extraction is missing all the indented references
at the bottom of the page. Markdown specify that those can be indented up
to three spaces.
2016-09-02 17:21:10 -03:00
Pat Hawks
cc0c5ea19e
Rubocop fixes
2016-05-24 19:01:35 -05:00
Parker Moore
ad59b6e62a
Remove merge conflicts I forgot to fix.
2016-05-24 18:49:02 -05:00
Parker Moore
dbcbf809ff
Refactor some tests to prevent manipulation of Jekyll::Config::DEFAULTS
2016-05-24 18:47:04 -05:00
Brint O'Hearn
98eef8af95
Aligning hashes per 2caff75
2016-05-16 19:48:04 -05:00
Brint O'Hearn
0635bbba06
Rubocop fixes for test/test_generated_site.rb
2016-05-16 19:26:53 -05:00
Parker Moore
a351a70b03
test: Slight refactor to doublecheck destination.
2016-01-18 14:08:53 -08:00
Parker Moore
275d56a0fe
test: use {assert,refute}_exist everywhere
2016-01-18 13:45:36 -08:00
Parker Moore
b6c283a4ae
wip: allow custom extensions
2016-01-04 17:42:06 -08:00
Parker Moore
cb5bc1093e
utils: has_yaml_header? should accept files with extraneous spaces
...
Occasionally, extra spaces at the end of the YAML front matter prologue are
saved to a file and it goes missing without telling the user why. This
should simply accept those changes without any detriment to the user,
allowing anyone to add as many spaces as they like to the end of their
front matter prologues.
2016-01-04 14:09:30 -08:00
Pat Hawks
a47ce7b655
Wrap Arguments in () when used in a setter
2015-12-26 12:48:20 -08:00
Parker Moore
00aa2955d8
generated site tests: put the static file mod time through a date filter
2015-04-14 11:52:26 -07:00
Arthur Neves
67ba8ad0cb
Use rspec-mock instead of rr
2015-03-06 20:13:07 -05:00
Will Norris
669c803912
always include file extension on destination files
...
This ensures that destination files for HTML posts, pages and
collections always include the proper file extension (as defined by
output_ext) regardless of permalink structure. This allows for URLs
that contain no extension or trailing slash to still result in proper
destination files with .html extensions.
Because this change relies so heavily on output_ext accurately
identifying the extension of the destination file, this change also
removes the feature test that tested support for permalinks with a .htm
extension. In order to support alternate file extensions, a future
patch or plugin will need to modify the output_ext value, at which point
everything else should work as expected.
2015-03-02 21:20:54 -08:00
Parker Moore
7ad0597bff
Make our own Minitest::Test subclass for further subclassing
2015-02-21 00:33:47 -08:00
Parker Moore
52c4ce2a5a
Finish of moving the unit tests over to Minitest
2015-02-21 00:31:07 -08:00
Parker Moore
4b59eb4175
Fix the test inheritance for the tests.
2015-02-20 13:35:02 -08:00
Parker Moore
3fe80929ad
We have 47 posts now in the tests.
2015-01-17 15:28:03 -08:00
Malo Skrylevo
54d0bf47e8
Added per post excerpt_separator functionality, so you are able to
...
specify :excerpt_separator (as well as just :excerpt) key direct inside
the post YAML, to make an excerpt based on the value in the post. Tests
were also added.
2015-01-08 15:18:06 +03:00
Brandon Bradley
d250efccb9
add test for broken markdown regexp
2014-11-24 19:56:26 -06:00
Garen Torikian
aa97f1025d
Support a new `relative_include` tag
2014-09-03 15:43:51 -07:00
Terry Schmidt
0371b69952
Set categor[y|ies] on post if they appear in site frontmatter defaults
2014-05-09 13:34:13 -05:00
Parker Moore
4f66db6c38
Merge pull request #2211 from jekyll/pgp-key-header-frontmatter
2014-04-14 12:59:59 -04:00
Ben Balter
6c0f40385c
add test for PGP key yaml frontmatter
2014-04-06 16:03:19 -04:00
Marcus Stollsteimer
fec6b59950
Use File.exist? instead of deprecated File.exists?
2014-04-06 13:31:34 +02:00
Parker Moore
9fe22546be
Expect 41 posts, not just 40.
2014-04-02 15:10:28 -04:00
Lincoln Mullen
52ac2b3850
Permit YAML blocks to end with three dots
...
The YAML spec permits blocks to end with three dots (...) in addition to
three dashes (---): http://www.yaml.org/spec/1.2/spec.html#id2760395 . Some
programs that work with Jekyll (e.g., Pandoc) prefer the dots to dashes. This
commit permits the YAML metadata block to end with either dots or dashes. It
includes tests.
Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2014-04-02 14:06:22 -04:00
Parker Moore
e3dd908d55
Add StaticFile#to_liquid['extname'] :)
2014-02-19 13:55:58 -05:00
Parker Moore
9659cfe876
Test site.static_files
2014-02-19 13:34:44 -05:00
Parker Moore
f638fb1784
Merge master into security-vuln-patches
2014-02-06 17:21:54 -05:00
liufengyun
22e1e5f28c
make sure pages with published being false are not generated
2014-01-19 09:52:19 +08:00
Ben Balter
f49ee21136
fix failing post count test
...
Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2014-01-13 22:21:30 -08:00
Parker Moore
c7b649f792
Update test_generated_site.rb to know about new post
2014-01-01 19:53:42 -08:00
Jens Nazarenus
43ef9a2e4f
variables in include tag with filters
2013-12-17 23:51:52 +01:00
Thomas Torsney-Weir
c983f38cc9
add test to demonstrate issue with markdown extension parsing. adding mkd as an extension should not cause mkdn files to also be markdownified
2013-08-06 10:52:24 +02:00