Skip to content
Newer
Older
100644 95 lines (86 sloc) 5.14 KB
15eaebe @qrush First crack at creating some user stories
qrush authored Mar 24, 2009
1 Feature: Create sites
2 As a hacker who likes to blog
8b5eb03 @qrush Adding plenty of features with just basic scenarios
qrush authored Mar 25, 2009
3 I want to be able to make a static site
4 In order to share my awesome ideas with the interwebs
15eaebe @qrush First crack at creating some user stories
qrush authored Mar 24, 2009
5
6 Scenario: Basic site
c22cd84 @qrush Starting on implementing the step defs
qrush authored Mar 31, 2009
7 Given I have an "index.html" file that contains "Basic Site"
15eaebe @qrush First crack at creating some user stories
qrush authored Mar 24, 2009
8 When I run jekyll
9 Then the _site directory should exist
e8a2596 @qrush Started on more of the stories
qrush authored Mar 25, 2009
10 And I should see "Basic Site" in "_site/index.html"
15eaebe @qrush First crack at creating some user stories
qrush authored Mar 24, 2009
11
12 Scenario: Basic site with a post
c22cd84 @qrush Starting on implementing the step defs
qrush authored Mar 31, 2009
13 Given I have a _posts directory
937dad6 @qrush Changing to FIT tables for posts, way better.
qrush authored Mar 27, 2009
14 And I have the following post:
15 | title | date | content |
16 | Hackers | 3/27/2009 | My First Exploit |
15eaebe @qrush First crack at creating some user stories
qrush authored Mar 24, 2009
17 When I run jekyll
18 Then the _site directory should exist
937dad6 @qrush Changing to FIT tables for posts, way better.
qrush authored Mar 27, 2009
19 And I should see "My First Exploit" in "_site/2009/03/27/hackers.html"
15eaebe @qrush First crack at creating some user stories
qrush authored Mar 24, 2009
20
3ebe81b @qrush Need to cut down on repeating story steps a bit
qrush authored Mar 26, 2009
21 Scenario: Basic site with layout and a page
c22cd84 @qrush Starting on implementing the step defs
qrush authored Mar 31, 2009
22 Given I have a _layouts directory
0d78cb7 @qrush All green for create sites feature
qrush authored Mar 31, 2009
23 And I have an "index.html" page with layout "default" that contains "Basic Site with Layout"
3ebe81b @qrush Need to cut down on repeating story steps a bit
qrush authored Mar 26, 2009
24 And I have a default layout that contains "Page Layout: {{ content }}"
15eaebe @qrush First crack at creating some user stories
qrush authored Mar 24, 2009
25 When I run jekyll
26 Then the _site directory should exist
3ebe81b @qrush Need to cut down on repeating story steps a bit
qrush authored Mar 26, 2009
27 And I should see "Page Layout: Basic Site with Layout" in "_site/index.html"
15eaebe @qrush First crack at creating some user stories
qrush authored Mar 24, 2009
28
29 Scenario: Basic site with layout and a post
c22cd84 @qrush Starting on implementing the step defs
qrush authored Mar 31, 2009
30 Given I have a _layouts directory
e8a2596 @qrush Started on more of the stories
qrush authored Mar 25, 2009
31 And I have a _posts directory
b5916ca @krisb added scenario to test correct site generation for a site with layout…
krisb authored Jan 5, 2010
32 And I have the following posts:
0d78cb7 @qrush All green for create sites feature
qrush authored Apr 1, 2009
33 | title | date | layout | content |
34 | Wargames | 3/27/2009 | default | The only winning move is not to play. |
3ebe81b @qrush Need to cut down on repeating story steps a bit
qrush authored Mar 26, 2009
35 And I have a default layout that contains "Post Layout: {{ content }}"
15eaebe @qrush First crack at creating some user stories
qrush authored Mar 24, 2009
36 When I run jekyll
37 Then the _site directory should exist
0d78cb7 @qrush All green for create sites feature
qrush authored Apr 1, 2009
38 And I should see "Post Layout: <p>The only winning move is not to play.</p>" in "_site/2009/03/27/wargames.html"
8b5eb03 @qrush Adding plenty of features with just basic scenarios
qrush authored Mar 25, 2009
39
b5916ca @krisb added scenario to test correct site generation for a site with layout…
krisb authored Jan 5, 2010
40 Scenario: Basic site with layouts, pages, posts and files
41 Given I have a _layouts directory
5a807aa @krisb pages now present in the site payload and can be used through the sit…
krisb authored Feb 26, 2010
42 And I have a page layout that contains "Page {{ page.title }}: {{ content }}"
43 And I have a post layout that contains "Post {{ page.title }}: {{ content }}"
44 And I have an "index.html" page with layout "page" that contains "Site contains {{ site.pages.size }} pages and {{ site.posts.size }} posts"
b5916ca @krisb added scenario to test correct site generation for a site with layout…
krisb authored Jan 5, 2010
45 And I have a blog directory
5a807aa @krisb pages now present in the site payload and can be used through the sit…
krisb authored Feb 26, 2010
46 And I have a "blog/index.html" page with layout "page" that contains "blog category index page"
b5916ca @krisb added scenario to test correct site generation for a site with layout…
krisb authored Jan 5, 2010
47 And I have an "about.html" file that contains "No replacement {{ site.posts.size }}"
48 And I have an "another_file" file that contains ""
49 And I have a _posts directory
50 And I have the following posts:
51 | title | date | layout | content |
52 | entry1 | 3/27/2009 | post | content for entry1. |
53 | entry2 | 4/27/2009 | post | content for entry2. |
54 And I have a category/_posts directory
55 And I have the following posts in "category":
56 | title | date | layout | content |
57 | entry3 | 5/27/2009 | post | content for entry3. |
58 | entry4 | 6/27/2009 | post | content for entry4. |
59 When I run jekyll
60 Then the _site directory should exist
5a807aa @krisb pages now present in the site payload and can be used through the sit…
krisb authored Feb 26, 2010
61 And I should see "Page : Site contains 2 pages and 4 posts" in "_site/index.html"
b5916ca @krisb added scenario to test correct site generation for a site with layout…
krisb authored Jan 5, 2010
62 And I should see "No replacement \{\{ site.posts.size \}\}" in "_site/about.html"
63 And I should see "" in "_site/another_file"
5a807aa @krisb pages now present in the site payload and can be used through the sit…
krisb authored Feb 26, 2010
64 And I should see "Page : blog category index page" in "_site/blog/index.html"
65 And I should see "Post entry1: <p>content for entry1.</p>" in "_site/2009/03/27/entry1.html"
66 And I should see "Post entry2: <p>content for entry2.</p>" in "_site/2009/04/27/entry2.html"
67 And I should see "Post entry3: <p>content for entry3.</p>" in "_site/category/2009/05/27/entry3.html"
68 And I should see "Post entry4: <p>content for entry4.</p>" in "_site/category/2009/06/27/entry4.html"
b5916ca @krisb added scenario to test correct site generation for a site with layout…
krisb authored Jan 5, 2010
69
8b5eb03 @qrush Adding plenty of features with just basic scenarios
qrush authored Mar 25, 2009
70 Scenario: Basic site with include tag
c22cd84 @qrush Starting on implementing the step defs
qrush authored Mar 31, 2009
71 Given I have a _includes directory
0d78cb7 @qrush All green for create sites feature
qrush authored Apr 1, 2009
72 And I have an "index.html" page that contains "Basic Site with include tag: {% include about.textile %}"
73 And I have an "_includes/about.textile" file that contains "Generated by Jekyll"
e8a2596 @qrush Started on more of the stories
qrush authored Mar 25, 2009
74 When I run jekyll
75 Then the _site directory should exist
76 And I should see "Basic Site with include tag: Generated by Jekyll" in "_site/index.html"
d88354e @mojombo cuke feature for subdir include
mojombo authored Jan 13, 2010
77
78 Scenario: Basic site with subdir include tag
79 Given I have a _includes directory
80 And I have an "_includes/about.textile" file that contains "Generated by Jekyll"
81 And I have an info directory
82 And I have an "info/index.html" page that contains "Basic Site with subdir include tag: {% include about.textile %}"
83 When I run jekyll
84 Then the _site directory should exist
0756d1f @mojombo add cuke feature for nested includes
mojombo authored Jan 13, 2010
85 And I should see "Basic Site with subdir include tag: Generated by Jekyll" in "_site/info/index.html"
86
87 Scenario: Basic site with nested include tag
88 Given I have a _includes directory
89 And I have an "_includes/about.textile" file that contains "Generated by {% include jekyll.textile %}"
90 And I have an "_includes/jekyll.textile" file that contains "Jekyll"
91 And I have an "index.html" page that contains "Basic Site with include tag: {% include about.textile %}"
f688c9d @cblunt Added limit-posts option to site configuration.
cblunt authored Sep 13, 2010
92 When I debug jekyll
0756d1f @mojombo add cuke feature for nested includes
mojombo authored Jan 14, 2010
93 Then the _site directory should exist
f688c9d @cblunt Added limit-posts option to site configuration.
cblunt authored Sep 12, 2010
94 And I should see "Basic Site with include tag: Generated by Jekyll" in "_site/index.html"
Something went wrong with that request. Please try again.