Sha256: 44a3eb65affc04ec72aeb8d185c68967dae2c077d41b3dda37b007c4b86395ba

Contents?: true

Size: 1.13 KB

Versions: 3

Compression:

Stored size: 1.13 KB

Contents

@fakefs
Feature: Gemfiles
  Scenario: When rebuilding for deployment, save the original state
    Given I have the file "Gemfile.erb" with the content:
      """
      this is content
      """
      And I have the file "Gemfile" with the content:
      """
      # generated by penchant, environment: local
      """
    When I rebuild the Gemfile for "production" mode with deployment
    Then the file "Gemfile" should have the following content:
      """
      # generated by penchant, environment: production, deployment mode (was local)
      this is content
      """

  Scenario: When unbundling from deployment with an original state, switch to that state
    Given I have the file "Gemfile.erb" with the content:
      """
      this is content
      """
      And I have the file "Gemfile" with the content:
      """
      # generated by penchant, environment: production, deployment mode (was local)
      """
    When I rebuild the Gemfile asking to switch back to the previous state
    Then the file "Gemfile" should have the following content:
      """
      # generated by penchant, environment: local
      this is content
      """

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
penchant-0.1.2 features/gemfile.feature
penchant-0.1.1 features/gemfile.feature
penchant-0.1.0 features/gemfile.feature