Module: RSpec::Rewind::FailureFingerprint

Defined in:
lib/rspec/rewind/failure_fingerprint.rb

Class Method Summary collapse

Class Method Details

.build(exception) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/rspec/rewind/failure_fingerprint.rb', line 8

def build(exception)
  return nil unless exception

  [
    exception.class.name,
    exception.message,
    exception.backtrace&.first
  ].join(':')
end