Sha256: 4db4d77422646126fcf729572585edf59de414fac0aae61e804d5f13db756bc3
Contents?: true
Size: 1.71 KB
Versions: 8
Compression:
Stored size: 1.71 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 "'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
8 entries across 8 versions & 1 rubygems