Class: RSpec::Support::Differ
- Inherits:
-
Object
- Object
- RSpec::Support::Differ
- 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_diff ⇒ Object
6 |
# File 'lib/specdiff/rspec.rb', line 6 alias old_diff diff |