Sha256: e2390f6459e87057834bb32cfae8fc446fb78c5515eb61bebf39ab051d1063cc

Contents?: true

Size: 1.3 KB

Versions: 13

Compression:

Stored size: 1.3 KB

Contents

Feature: extensions
  In order to monkeypatch other libraries, I should be able to cook some
  extensions.
  
  Scenario: monkeypatch for external dependency
    When I run "jsus Extensions tmp -d Extensions/Mootools"
    Then the following files should exist:
      | tmp/package.js |
    And file "tmp/package.js" should contain
      """
      /*
      ---

      script: Core.js

      description: Mootools fake core

      license: MIT-style license

      authors:
      - Valerio Proietti

      provides: [Core]

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

      script: MootooolsCore.js

      description: Extension for mootools core

      license: MIT-style license

      authors:
      - Mark Abramov

      extends: Mootools/Core

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

      script: Color.js

      description: A library to work with colors

      license: MIT-style license

      authors:
      - Valerio Proietti

      requires:
        - Mootools/Core

      provides: [Color]

      ...
      */
      """
    And file "tmp/package.js" should have "MootooolsCore.js" after "script: Core.js"  
    And file "tmp/package.js" should have "MootooolsCore.js" before "script: Color.js"

Version data entries

13 entries across 13 versions & 1 rubygems

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