Sha256: 559367146db0f9800d118399d546d39d566dc3cf7bf52e5c43ab461c8a5c97f1

Contents?: true

Size: 867 Bytes

Versions: 4

Compression:

Stored size: 867 Bytes

Contents

Feature: hook
  ModuleSync needs to update git pre-push hooks

  Scenario: Activating a hook
    Given a directory named ".git/hooks"
    When I run `msync hook activate`
    Then the exit status should be 0
    And the file named ".git/hooks/pre-push" should contain "bash"

  Scenario: Deactivating a hook
    Given a file named ".git/hooks/pre-push" with:
      """
      git hook
      """
    When I run `msync hook deactivate`
    Then the exit status should be 0
    Then the file ".git/hooks/pre-push" should not exist

  Scenario: Activating a hook with arguments
    Given a directory named ".git/hooks"
    When I run `msync hook activate -a '--foo bar --baz quux' -b master`
    Then the exit status should be 0
    And the file named ".git/hooks/pre-push" should contain:
      """
      "$message" -n puppetlabs -b master --foo bar --baz quux
      """

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
modulesync-2.2.0 features/hook.feature
modulesync-2.1.1 features/hook.feature
modulesync-2.1.0 features/hook.feature
modulesync-2.0.2 features/hook.feature