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