|  |  |  | @ -9,7 +9,7 @@ Feature: Collections | 
		
	
		
			
				|  |  |  |  |     And I have a configuration file with "collections" set to "['methods']" | 
		
	
		
			
				|  |  |  |  |     When I run jekyll build | 
		
	
		
			
				|  |  |  |  |     Then the _site directory should exist | 
		
	
		
			
				|  |  |  |  |     And I should see "Collections: <p>Use <code>Jekyll.configuration</code> to build a full configuration for use w/Jekyll.</p>\n\n<p>Whatever: foo.bar</p>\n<p><code>Jekyll.sanitized_path</code> is used to make sure your path is in your source.</p>\n<p>Run your generators! default</p>\n<p>Page without title.</p>\n<p>Run your generators! default</p>" in "_site/index.html" | 
		
	
		
			
				|  |  |  |  |     And I should see "Collections: <p>Use <code>Jekyll.configuration</code> to build a full configuration for use w/Jekyll.</p>\n\n<p>Whatever: foo.bar</p>\n<p>Signs are nice</p>\n<p><code>Jekyll.sanitized_path</code> is used to make sure your path is in your source.</p>\n<p>Run your generators! default</p>\n<p>Page without title.</p>\n<p>Run your generators! default</p>" in "_site/index.html" | 
		
	
		
			
				|  |  |  |  |     And the "_site/methods/configuration.html" file should not exist | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |   Scenario: Rendered collection | 
		
	
	
		
			
				
					|  |  |  | @ -70,7 +70,7 @@ Feature: Collections | 
		
	
		
			
				|  |  |  |  |     """ | 
		
	
		
			
				|  |  |  |  |     When I run jekyll build | 
		
	
		
			
				|  |  |  |  |     Then the _site directory should exist | 
		
	
		
			
				|  |  |  |  |     And I should see "Collections: _methods/configuration.md _methods/sanitized_path.md _methods/site/generate.md _methods/site/initialize.md _methods/um_hi.md" in "_site/index.html" | 
		
	
		
			
				|  |  |  |  |     And I should see "Collections: _methods/configuration.md _methods/escape-\+ #%20\[\].md _methods/sanitized_path.md _methods/site/generate.md _methods/site/initialize.md _methods/um_hi.md" in "_site/index.html" | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |   Scenario: Collections specified as an hash | 
		
	
		
			
				|  |  |  |  |     Given I have an "index.html" page that contains "Collections: {% for method in site.methods %}{{ method.relative_path }} {% endfor %}" | 
		
	
	
		
			
				
					|  |  |  | @ -82,7 +82,7 @@ Feature: Collections | 
		
	
		
			
				|  |  |  |  |     """ | 
		
	
		
			
				|  |  |  |  |     When I run jekyll build | 
		
	
		
			
				|  |  |  |  |     Then the _site directory should exist | 
		
	
		
			
				|  |  |  |  |     And I should see "Collections: _methods/configuration.md _methods/sanitized_path.md _methods/site/generate.md _methods/site/initialize.md _methods/um_hi.md" in "_site/index.html" | 
		
	
		
			
				|  |  |  |  |     And I should see "Collections: _methods/configuration.md _methods/escape-\+ #%20\[\].md _methods/sanitized_path.md _methods/site/generate.md _methods/site/initialize.md _methods/um_hi.md" in "_site/index.html" | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |   Scenario: All the documents | 
		
	
		
			
				|  |  |  |  |     Given I have an "index.html" page that contains "All documents: {% for doc in site.documents %}{{ doc.relative_path }} {% endfor %}" | 
		
	
	
		
			
				
					|  |  |  | @ -94,7 +94,7 @@ Feature: Collections | 
		
	
		
			
				|  |  |  |  |     """ | 
		
	
		
			
				|  |  |  |  |     When I run jekyll build | 
		
	
		
			
				|  |  |  |  |     Then the _site directory should exist | 
		
	
		
			
				|  |  |  |  |     And I should see "All documents: _methods/configuration.md _methods/sanitized_path.md _methods/site/generate.md _methods/site/initialize.md _methods/um_hi.md" in "_site/index.html" | 
		
	
		
			
				|  |  |  |  |     And I should see "All documents: _methods/configuration.md _methods/escape-\+ #%20\[\].md _methods/sanitized_path.md _methods/site/generate.md _methods/site/initialize.md _methods/um_hi.md" in "_site/index.html" | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |   Scenario: Documents have an output attribute, which is the converted HTML | 
		
	
		
			
				|  |  |  |  |     Given I have an "index.html" page that contains "First document's output: {{ site.documents.first.output }}" | 
		
	
	
		
			
				
					|  |  |  | @ -130,7 +130,7 @@ Feature: Collections | 
		
	
		
			
				|  |  |  |  |     """ | 
		
	
		
			
				|  |  |  |  |     When I run jekyll build | 
		
	
		
			
				|  |  |  |  |     Then the _site directory should exist | 
		
	
		
			
				|  |  |  |  |     And I should see "1. of 5: <p>Page without title.</p>" in "_site/index.html" | 
		
	
		
			
				|  |  |  |  |     And I should see "1. of 6: <p>Page without title.</p>" in "_site/index.html" | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |   Scenario: Sort by relative_path | 
		
	
		
			
				|  |  |  |  |     Given I have an "index.html" page that contains "Collections: {% assign methods = site.methods | sort: 'relative_path' %}{% for method in methods %}{{ method.title }}, {% endfor %}" | 
		
	
	
		
			
				
					|  |  |  | @ -142,4 +142,4 @@ Feature: Collections | 
		
	
		
			
				|  |  |  |  |     """ | 
		
	
		
			
				|  |  |  |  |     When I run jekyll build | 
		
	
		
			
				|  |  |  |  |     Then the _site directory should exist | 
		
	
		
			
				|  |  |  |  |     And I should see "Collections: Jekyll.configuration, Jekyll.sanitized_path, Site#generate, , Site#generate," in "_site/index.html" | 
		
	
		
			
				|  |  |  |  |     And I should see "Collections: Jekyll.configuration, Jekyll.escape, Jekyll.sanitized_path, Site#generate, , Site#generate," in "_site/index.html" | 
		
	
	
		
			
				
					| 
							
							
							
						 |  |  | 
 |