features/embed_filters: reformat a little
This commit is contained in:
parent
1d369aada3
commit
cc6e49a389
|
@ -80,15 +80,13 @@ Feature: Embed filters
|
||||||
|
|
||||||
Scenario: Sort pages by the title
|
Scenario: Sort pages by the title
|
||||||
Given I have a _layouts directory
|
Given I have a _layouts directory
|
||||||
|
And I have the following pages:
|
||||||
|
| title | layout | content |
|
||||||
|
| Dog | default | Run |
|
||||||
|
| Bird | default | Fly |
|
||||||
And I have the following page:
|
And I have the following page:
|
||||||
| title | layout | content |
|
| layout | content |
|
||||||
| Dog | default | Run |
|
| default | Jump |
|
||||||
And I have the following page:
|
|
||||||
| title | layout | content |
|
|
||||||
| Bird | default | Fly |
|
|
||||||
And I have the following page:
|
|
||||||
| layout | content |
|
|
||||||
| default | Jump |
|
|
||||||
And I have a default layout that contains "{% assign sorted_pages = site.pages | sort: 'title' %}The rule of {{ sorted_pages.size }}: {% for p in sorted_pages %}{{ p.content | strip_html | strip_newlines }}, {% endfor %}"
|
And I have a default layout that contains "{% assign sorted_pages = site.pages | sort: 'title' %}The rule of {{ sorted_pages.size }}: {% for p in sorted_pages %}{{ p.content | strip_html | strip_newlines }}, {% endfor %}"
|
||||||
When I run jekyll build
|
When I run jekyll build
|
||||||
Then I should get a zero exit status
|
Then I should get a zero exit status
|
||||||
|
@ -97,15 +95,13 @@ Feature: Embed filters
|
||||||
|
|
||||||
Scenario: Sort pages by the title ordering pages without title last
|
Scenario: Sort pages by the title ordering pages without title last
|
||||||
Given I have a _layouts directory
|
Given I have a _layouts directory
|
||||||
|
And I have the following pages:
|
||||||
|
| title | layout | content |
|
||||||
|
| Dog | default | Run |
|
||||||
|
| Bird | default | Fly |
|
||||||
And I have the following page:
|
And I have the following page:
|
||||||
| title | layout | content |
|
| layout | content |
|
||||||
| Dog | default | Run |
|
| default | Jump |
|
||||||
And I have the following page:
|
|
||||||
| title | layout | content |
|
|
||||||
| Bird | default | Fly |
|
|
||||||
And I have the following page:
|
|
||||||
| layout | content |
|
|
||||||
| default | Jump |
|
|
||||||
And I have a default layout that contains "{% assign sorted_pages = site.pages | sort: 'title', 'last' %}The rule of {{ sorted_pages.size }}: {% for p in sorted_pages %}{{ p.content | strip_html | strip_newlines }}, {% endfor %}"
|
And I have a default layout that contains "{% assign sorted_pages = site.pages | sort: 'title', 'last' %}The rule of {{ sorted_pages.size }}: {% for p in sorted_pages %}{{ p.content | strip_html | strip_newlines }}, {% endfor %}"
|
||||||
When I run jekyll build
|
When I run jekyll build
|
||||||
Then I should get a zero exit status
|
Then I should get a zero exit status
|
||||||
|
|
Loading…
Reference in New Issue