Sha256: e89e5f22c3e397f4c5978b103ad32dbb3179fa62ab7896c1cc51aba7a20302cb

Contents?: true

Size: 927 Bytes

Versions: 6

Compression:

Stored size: 927 Bytes

Contents

Feature: Removing a Git hook with the gem
  In order to remove an installed hook
  As developer
  I want to remove the hook with the script

  Scenario: Not having a Git repository
    Given I am in a directory that isnt a Git repository
    When I run the remove script with "pre-commit" type flag
    Then it should fail with:
      """
      I can't detect a Git repository
      """

  Scenario Outline: Having a Git repository and removing a hook
    Given I am in a directory that is a Git repository
    And a "<Hook>" is present
    And I run the remove script with "<Hook>" type flag
    Then it should pass with:
      """
      The <Hook> hook is removed.
      """
    And a "<Hook>" hook file did not exists

    Examples:
      | Hook |
      | pre-commit |
      | pre-push |
      | pre-rebase |
      | post-update |
      | commit-msg |
      | applypatch-msg |
      | post-update |
      | pre-applypatch |

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
captain_hoog-2.0.0 features/removing_hook.feature
captain_hoog-1.1.1 features/removing_hook.feature
captain_hoog-1.1.0 features/removing_hook.feature
captain_hoog-1.0.2 features/removing_hook.feature
captain_hoog-1.0.1 features/removing_hook.feature
captain_hoog-1.0 features/removing_hook.feature