Sha256: 0ffbd2bea3a7ff001222c51f9a2ca081e158ffb72ec3efafe1a2baadd7cc29f8

Contents?: true

Size: 1.28 KB

Versions: 2

Compression:

Stored size: 1.28 KB

Contents

Feature: Upgrade aka
  In order to keep the aka configuration up to date
  I want to upgrade the configuration from the command-line
  So I don't have to do it manually

  Background:
    Given I set the AKA environment variable to the ".aka.yml" file in the working directory
    And I set the environment variables to:
    | variable | value |
    | NO_MAN   | 1     |


  Scenario: Upgrade from v0 to v1
    Given a file named ".aka.yml" with:
    """
    ---
    1: !ruby/object:OpenStruct
      table:
        :shortcut: ls
        :command: ls -F --color=auto
      modifiable: true

    """
    When I run `aka upgrade`
    Then the exit status should be 0
    And the file ".aka.yml" should contain exactly:
    """
    ---
    :version: '1'
    :shortcuts:
      1: !ruby/object:OpenStruct
        table:
          :shortcut: ls
          :command: ls -F --color=auto
        modifiable: true

    """
    And the stdout should contain "Upgraded"
    And the stdout should contain ".aka.yml"
    And the stdout should contain "Backed up to"
    And the stdout should contain ".aka.yml.backup"
    And the file ".aka.yml.backup" should contain exactly:
    """
    ---
    1: !ruby/object:OpenStruct
      table:
        :shortcut: ls
        :command: ls -F --color=auto
      modifiable: true

    """

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hsume2-aka-0.2.1 features/aka/upgrade.feature
hsume2-aka-0.2.0 features/aka/upgrade.feature