Sha256: 03afcb57ec8bbd3a6bfcb5135a66d424be868c9670a5535a6601a85a280cadd9

Contents?: true

Size: 1.33 KB

Versions: 1

Compression:

Stored size: 1.33 KB

Contents

Feature: release

  In order to obtain a deployable zip file of the extension
  I as a CLI


  Scenario: Not within an extension
    Given the current directory is no extension directory
    When I run `jdt.bat release`
    Then the output should contain exactly "No manifest found\n"

    
  Scenario: Success
    Given a file named "manifest.xml" with:
    """
<?xml version="1.0" encoding="UTF-8"?>
<extension type="library" version="1.7.0" method="upgrade">

  <name>activerecord</name>
  <version>0.0.1</version>

  <files>
    <filename>README</filename>
    <folder>lib</folder>
  </files>

</extension>
    """
    And a file named "README" with:
    """
    test
    """
    And an empty file named "CHANGELOG"
    And a directory named "lib"
    And an empty file named "lib/test.php"
    And a directory named "zip" should not exist

    When I run `jdt.bat release`

    Then a directory named "zip" should exist
    And a file named "zip/lib_activerecord-v0.0.1.zip" should exist
    And a file named "README" should exist within a zip file "zip/lib_activerecord-v0.0.1.zip" with:
    """
    test
    """
    And a file named "CHANGELOG" should not exist within a zip file "zip/lib_activerecord-v0.0.1.zip"
    And a file named "lib/test.php" should exist within a zip file "zip/lib_activerecord-v0.0.1.zip"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jdt-0.0.2 features/release.feature