2db2cfb81c
The existing 'files_folders' test only covered the /Mordor subdirectory, which does not include a diverse enough set of pages and folders to account for the new rendering logic. This test uses the results from the root of the lotr.git example repository as it exists at this point in time. The mock '@results' are not passed as a sorted array in order to test the sorting logic. The existing 'files_folders' test has been renamed to 'files_folders from subdir' because the 'files_folders' function should be tested in a situation when viewing /pages from a subdirectory to ensure proper functionality.