Sha256: ddd61638f8fc9f9f7e2b5666ff0cd98c720ace2efb3e1e1ad0d72ef6aca7627e

Contents?: true

Size: 900 Bytes

Versions: 12

Compression:

Stored size: 900 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
    Given I run `cat .git/hooks/pre-push`
    Then the output 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
    Given I run `cat .git/hooks/pre-push`
    Then the output should match:
      """
      "\$message" -n puppetlabs -b master --foo bar --baz quux
      """

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
modulesync-2.0.1 features/hook.feature
modulesync-2.0.0 features/hook.feature
modulesync-1.3.0 features/hook.feature
modulesync-1.2.0 features/hook.feature
modulesync-1.1.0 features/hook.feature
modulesync-1.0.0 features/hook.feature
modulesync-0.10.0 features/hook.feature
modulesync-0.9.0 features/hook.feature
modulesync-0.8.2 features/hook.feature
modulesync-0.8.1 features/hook.feature
modulesync-0.8.0 features/hook.feature
modulesync-0.7.2 features/hook.feature