features/template_cli.feature in middleman-tansu-0.0.2 vs features/template_cli.feature in middleman-tansu-0.0.3
- old
+ new
@@ -7,10 +7,11 @@
Then the following files should exist:
| Gemfile |
| .gitignore |
| config.rb |
| source/sample.html.md |
+ | source/sitemap.xml.builder |
| source/layouts/layout.slim |
| source/stylesheets/all.css.sass |
| source/stylesheets/github-markdown.css |
| source/templates/index.html.slim |
@@ -20,8 +21,42 @@
When I run `middleman build`
Then the exit status should be 0
And the following files should exist:
| build/index.html |
| build/sample.html |
+ | build/sitemap.xml |
| build/stylesheets/all.css |
And the file "build/index.html" should contain "middleman-tansu の簡単な紹介"
+ And the helper result "build/sample.html" should contain:
+ """
+ <li class="current">middleman-tansu の簡単な紹介</li>
+ """
+ And the helper result "build/sitemap.xml" should contain:
+ """
+ <loc>http://localhost:4567/index.html</loc>
+ """
+ Scenario: Build a new project with app.config.sitemap_url
+ Given I run `middleman init MY_PROJECT --template tansu`
+ And a file named "MY_PROJECT/config.rb" with:
+ """
+ require "slim"
+ require "builder"
+ set :site_title, "Middleman-Tansu"
+ set :sitemap_url, "http://middlemanapp.com"
+ activate :tansu
+ set :markdown_engine, :redcarpet
+ set :markdown, :fenced_code_blocks => true, :smartypants => true, :with_toc_data => true
+ activate :syntax, :inline_theme => 'github'
+ """
+ And I cd to "MY_PROJECT"
+ When I run `middleman build`
+ Then the exit status should be 0
+ And the following files should exist:
+ | build/index.html |
+ | build/sample.html |
+ | build/sitemap.xml |
+ | build/stylesheets/all.css |
+ And the helper result "build/sitemap.xml" should contain:
+ """
+ <loc>http://middlemanapp.com/index.html</loc>
+ """