Sha256: 157e27e73a345bbb89d32ef33e82a9d60e81d548db5b130d14ef79230f908d1a

Contents?: true

Size: 325 Bytes

Versions: 25

Compression:

Stored size: 325 Bytes

Contents

# frozen_string_literal: true

module Overcommit::Hook::PrePush
  # Runs `rspec` test suite before push
  #
  # @see http://rspec.info/
  class RSpec < Base
    def run
      result = execute(command)
      return :pass if result.success?

      output = result.stdout + result.stderr
      [:fail, output]
    end
  end
end

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
overcommit-0.62.0 lib/overcommit/hook/pre_push/r_spec.rb
overcommit-0.61.0 lib/overcommit/hook/pre_push/r_spec.rb
overcommit-0.60.0 lib/overcommit/hook/pre_push/r_spec.rb
overcommit-0.59.1 lib/overcommit/hook/pre_push/r_spec.rb
overcommit-0.59.0 lib/overcommit/hook/pre_push/r_spec.rb
overcommit-jeygeethanmedia-0.58.0 lib/overcommit/hook/pre_push/r_spec.rb
overcommit-0.58.0 lib/overcommit/hook/pre_push/r_spec.rb
overcommit-0.57.0 lib/overcommit/hook/pre_push/r_spec.rb
overcommit-0.56.0 lib/overcommit/hook/pre_push/r_spec.rb
overcommit-0.55.0 lib/overcommit/hook/pre_push/r_spec.rb
overcommit-0.54.1 lib/overcommit/hook/pre_push/r_spec.rb
overcommit-0.54.0 lib/overcommit/hook/pre_push/r_spec.rb
overcommit-jeygeethanmedia-0.53.1.2 lib/overcommit/hook/pre_push/r_spec.rb
overcommit-jeygeethanmedia-0.53.1.1 lib/overcommit/hook/pre_push/r_spec.rb
overcommit-jeygeethanmedia-0.53.1 lib/overcommit/hook/pre_push/r_spec.rb
overcommit-0.53.0 lib/overcommit/hook/pre_push/r_spec.rb
overcommit-0.52.1 lib/overcommit/hook/pre_push/r_spec.rb
overcommit-0.52.0 lib/overcommit/hook/pre_push/r_spec.rb
overcommit-0.51.0 lib/overcommit/hook/pre_push/r_spec.rb
overcommit-0.50.0 lib/overcommit/hook/pre_push/r_spec.rb