Sha256: b55190982c9b08b048d48d499d3ddda3b87940774c745e09cc441834599117c5

Contents?: true

Size: 1.39 KB

Versions: 3

Compression:

Stored size: 1.39 KB

Contents

Feature: Middleman-Slim CLI

  Scenario: Create a new project
    Given I run `middleman init MY_PROJECT --template slim`
    And the exit status should be 0
    When I cd to "MY_PROJECT"
    Then the following files should exist:
      | Gemfile                                       |
      | .gitignore                                    |
      | config.rb                                     |
      | source/index.html.slim                        |
      | source/images/background.png                  |
      | source/images/middleman.png                   |
      | source/layouts/layout.slim                    |
      | source/javascripts/all.js                     |
      | source/stylesheets/all.css                    |
      | source/stylesheets/normalize.css              |
    And the file "source/stylesheets/all.css" should contain "../images/"

  Scenario: Create a new project with --images-dir option
    Given I run `middleman init MY_PROJECT --template slim --images-dir img`
    And the exit status should be 0
    When I cd to "MY_PROJECT"
    Then the following files should exist:
      | source/img/background.png                     |
      | source/img/middleman.png                      |
      | source/stylesheets/all.css                    |
    And the file "source/stylesheets/all.css" should contain "../img/"
    And the file "source/stylesheets/all.css" should not contain "../images/"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
middleman-slim-0.2.2 features/cli_init.feature
middleman-slim-0.2.1 features/cli_init.feature
middleman-slim-0.2.0 features/cli_init.feature