Sha256: 91188acfd29b7ff4e98bedaeaec6c79a08d9a9fdb206a46af35d8eca97482d20

Contents?: true

Size: 1.81 KB

Versions: 13

Compression:

Stored size: 1.81 KB

Contents

Feature: resolve dependencies
  In order to resolve dependencies, jsus should use topological sort on the
  dependency list.

  Scenario: internal dependencies in correct order
    When I run "jsus Basic tmp"
    Then the following files should exist:
      | tmp/package.js |
    And file "tmp/package.js" should contain
      """
      /*
      ---

      script: Color.js

      description: A library to work with colors

      license: MIT-style license

      authors:
      - Valerio Proietti

      provides: [Color]

      ...
      */
      """
    And file "tmp/package.js" should contain
      """
      /*
      ---

      script: Input.Color.js

      description: Cool colorpicker for everyone to enjoy

      license: MIT-style license

      authors:
      - Yaroslaff Fedin

      requires:
      - Color

      provides: [Input.Color]

      ...
      */
      """
    And file "tmp/package.js" should have "script: Color.js" before "script: Input.Color.js"  
      
  
  
  Scenario: internal dependencies in wrong order
    When I run "jsus BasicWrongOrder tmp"
    Then the following files should exist:
      | tmp/package.js |
    And file "tmp/package.js" should contain
      """
      /*
      ---

      script: Color.js

      description: A library to work with colors

      license: MIT-style license

      authors:
      - Valerio Proietti

      provides: [Color]

      ...
      */
      """
    And file "tmp/package.js" should contain
      """
      /*
      ---

      script: Input.Color.js

      description: Cool colorpicker for everyone to enjoy

      license: MIT-style license

      authors:
      - Yaroslaff Fedin

      requires:
      - Color

      provides: [Input.Color]

      ...
      */
      """
    And file "tmp/package.js" should have "script: Color.js" before "script: Input.Color.js"  

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
jsus-0.4.0 features/command-line/basic_dependency_resolution.feature
jsus-0.3.6 features/command-line/basic_dependency_resolution.feature
jsus-0.3.5 features/command-line/basic_dependency_resolution.feature
jsus-0.3.4 features/command-line/basic_dependency_resolution.feature
jsus-0.3.3 features/command-line/basic_dependency_resolution.feature
jsus-0.3.2 features/command-line/basic_dependency_resolution.feature
jsus-0.3.1 features/command-line/basic_dependency_resolution.feature
jsus-0.3.0 features/command-line/basic_dependency_resolution.feature
jsus-0.2.7 features/command-line/basic_dependency_resolution.feature
jsus-0.2.6 features/command-line/basic_dependency_resolution.feature
jsus-0.2.5 features/command-line/basic_dependency_resolution.feature
jsus-0.2.4 features/command-line/basic_dependency_resolution.feature
jsus-0.2.3 features/command-line/basic_dependency_resolution.feature