Sha256: efeeb2b7c2900b62edbc09ed3f8335d8ba52fe38d2d41e1b551670fb2dc29595
Contents?: true
Size: 677 Bytes
Versions: 4
Compression:
Stored size: 677 Bytes
Contents
#!/usr/bin/env cucumber Feature: Draconian option Background: Given a directory named ".git/hooks" And a file named "Rakefile" with: """ require "../../lib/git_precommit" GitPrecommit::PrecommitTasks.new :draconian => true task :default => ".git/hooks/pre-commit" """ Scenario: No pre-commit hook is installed When I successfully run "rake" Then the following files should exist: | .git/hooks/pre-commit | Scenario: The pre-commit hook is modified When I append to ".git/hooks/pre-commit" with: """ echo "My new hook!" """ And I successfully run "rake" Then the file ".git/hooks/pre-commit" should not contain "echo"
Version data entries
4 entries across 4 versions & 1 rubygems