class Overcommit::Hook::PrePush::RSpec
Runs `rspec` test suite before push
@see rspec.info/
Public Instance Methods
run()
click to toggle source
# File lib/overcommit/hook/pre_push/r_spec.rb, line 8 def run result = execute(command) return :pass if result.success? output = result.stdout + result.stderr [:fail, output] end