Sha256: 619f88ffaa71fa0e600d2f79842d70a66ed5a1ffa74b63e38a207e8f6cba3a28

Contents?: true

Size: 1.72 KB

Versions: 2

Compression:

Stored size: 1.72 KB

Contents

Feature: Run `create` command
  In order to create new models

  Scenario: Create a new model scaffold
    Given I run `sculptor create test` interactively
    Then I wait for output to contain "Creating model: source/test"
    And I wait for output to contain "Title"
    Then I hit enter
    And I wait for output to contain "Description"
    Then I hit enter
    And I wait for output to contain "Stylesheet"
    Then I hit enter
    And I wait for output to contain "Use iframe?"
    Then I type "n"
    And I wait for output to contain "Include data?"
    Then I type "n"
    And the exit status should be 0
    Then the output should contain "create"

  Scenario: Create a new model scaffold and set meta data
    Given I run `sculptor create test` interactively
    Then I wait for output to contain "Creating model: source/test"
    And I wait for output to contain "Title"
    Then I type "Hello World"
    And I wait for output to contain "Description"
    Then I type "My model description"
    And I wait for output to contain "Stylesheet"
    Then I type "styles"
    And I wait for output to contain "Use iframe?"
    Then I type "n"
    And I wait for output to contain "Include data?"
    Then I type "y"
    And the exit status should be 0
    Then the output should contain "create"
    And a directory named "source/test" should exist
    Then the file "source/test/test.html.slim" should contain "Hello World"
    And the file "source/test/test.html.slim" should contain "My model description"
    And the file "source/test/index.html.slim" should contain "'partials/glyptotheque/model-index'"
    And the file "source/test/test.yaml" should contain "hello: World"
    And the file "source/test/styles.scss" should contain "@import 'bourbon'"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sculptor-0.0.7 features/create.feature
sculptor-0.0.6 features/create.feature