jekyll/test
Justin Weiss fa435fae94 Use `Jekyll::Post`s for both LSI indexing and lookup.
When looking for related posts, Jekyll was indexing `Jekyll::Post`
objects, but finding related posts based on `Jekyll::Post#content`. This
caused two problems:

1. Ruby 2.2 will warn on == if <=> throws an exception (and future Ruby
versions will surface that exception). Because `String`s can't be
compared with `Jekyll::Post`s, this warning was appearing all the time
while searching for related posts.

2. LSI won't return a post itself when searching for related posts. But
LSI could never tell that we were searching on a post, since Jekyll
passed post content, not a post object. With this fix, we can remove the
`- [post]` from `Jekyll::RelatedPosts#find_related`.

This is a more accurate fix for #3484.
2015-03-29 23:43:55 -07:00
..
fixtures Remove trailing whitespace 2015-02-22 20:27:15 +09:00
source always include file extension on destination files 2015-03-02 21:20:54 -08:00
helper.rb Use rspec-mock instead of rr 2015-03-06 20:13:07 -05:00
simplecov_custom_profile.rb Move simplecov_custom_profile to test/ & gate with TRAVIS env 2015-03-01 00:36:20 -08:00
test_cleaner.rb Make our own Minitest::Test subclass for further subclassing 2015-02-21 00:33:47 -08:00
test_coffeescript.rb Make our own Minitest::Test subclass for further subclassing 2015-02-21 00:33:47 -08:00
test_collections.rb Make our own Minitest::Test subclass for further subclassing 2015-02-21 00:33:47 -08:00
test_command.rb Use rspec-mock instead of rr 2015-03-06 20:13:07 -05:00
test_configuration.rb Use rspec-mock instead of rr 2015-03-06 20:13:07 -05:00
test_convertible.rb Make our own Minitest::Test subclass for further subclassing 2015-02-21 00:33:47 -08:00
test_document.rb Separated some more readers from the main reader.rb file. 2015-03-06 17:20:25 +01:00
test_draft.rb Make our own Minitest::Test subclass for further subclassing 2015-02-21 00:33:47 -08:00
test_entry_filter.rb Merge pull request #3545 from delftswa2014/site_extract_readers 2015-03-23 19:53:07 -07:00
test_excerpt.rb switch remaining textile test files to markdown 2015-02-27 18:29:52 -08:00
test_filters.rb Separated some more readers from the main reader.rb file. 2015-03-06 17:20:25 +01:00
test_front_matter_defaults.rb Make our own Minitest::Test subclass for further subclassing 2015-02-21 00:33:47 -08:00
test_generated_site.rb Use rspec-mock instead of rr 2015-03-06 20:13:07 -05:00
test_kramdown.rb Make our own Minitest::Test subclass for further subclassing 2015-02-21 00:33:47 -08:00
test_layout_reader.rb Use rspec-mock instead of rr 2015-03-06 20:13:07 -05:00
test_liquid_extensions.rb Make our own Minitest::Test subclass for further subclassing 2015-02-21 00:33:47 -08:00
test_log_adapter.rb Use rspec-mock instead of rr 2015-03-06 20:13:07 -05:00
test_new_command.rb Use rspec-mock instead of rr 2015-03-06 20:13:07 -05:00
test_page.rb Separated some more readers from the main reader.rb file. 2015-03-06 17:20:25 +01:00
test_path_sanitization.rb Use rspec-mock instead of rr 2015-03-06 20:13:07 -05:00
test_plugin_manager.rb Make our own Minitest::Test subclass for further subclassing 2015-02-21 00:33:47 -08:00
test_post.rb always include file extension on destination files 2015-03-02 21:20:54 -08:00
test_rdiscount.rb Make our own Minitest::Test subclass for further subclassing 2015-02-21 00:33:47 -08:00
test_redcarpet.rb Make our own Minitest::Test subclass for further subclassing 2015-02-21 00:33:47 -08:00
test_regenerator.rb Incrementally regenerate missing destination file 2015-03-21 19:25:02 -07:00
test_related_posts.rb Use `Jekyll::Post`s for both LSI indexing and lookup. 2015-03-29 23:43:55 -07:00
test_sass.rb Make our own Minitest::Test subclass for further subclassing 2015-02-21 00:33:47 -08:00
test_site.rb Merge pull request #3614 from nickburlett/patch/incremental-build-dest-missing 2015-03-28 19:26:01 -05:00
test_tags.rb Merge pull request #3545 from delftswa2014/site_extract_readers 2015-03-23 19:53:07 -07:00
test_url.rb Make our own Minitest::Test subclass for further subclassing 2015-02-21 00:33:47 -08:00
test_utils.rb Separated some more readers from the main reader.rb file. 2015-03-06 17:20:25 +01:00