Sha256: 8f3d31556291be8187ee9bce1079910ebbbc086b137768fed7879eed0d80483a
Contents?: true
Size: 530 Bytes
Versions: 56
Compression:
Stored size: 530 Bytes
Contents
require 'English' module Overcommit::GitHook # Try to avoid commiting code which breaks specs. # Install the hook with `overcommit .` in the top directory. class SpecsPass < HookSpecificCheck include HookRegistry file_types :rb def run_check unless in_path?('rspec') return :warn, 'rspec not installed -- run `gem install rspec`' end output = `rspec 2>&1` if $CHILD_STATUS.exitstatus == 0 return :good else return :bad, output end end end end
Version data entries
56 entries across 56 versions & 1 rubygems