Class: RSpec::Support::Differ

Inherits:
Object
  • Object
show all
Defined in:
lib/specdiff/rspec.rb

Overview

Instance Method Summary collapse

Instance Method Details

#diff(actual, expected) ⇒ Object



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

def diff(actual, expected)
  diff = ::Specdiff.diff(expected, actual)
  if diff.empty?
    ""
  else
    "\n#{diff}"
  end
end

#old_diffObject



6
# File 'lib/specdiff/rspec.rb', line 6

alias old_diff diff