Class: AssertDirsEqual::Diff

Inherits:
Object
  • Object
show all
Extended by:
Minitest::Assertions
Defined in:
lib/assert_dirs_equal/matcher.rb,
lib/minitest/assert_dirs_equal.rb

Overview

Since:

  • 0.1.0

Class Method Summary collapse

Class Method Details

.perform(expected, actual) ⇒ String

This method is abstract.

Reuse existing test framework diff functionality to override this method.

Returns human readable diff between ‘expected` and `actual`.

Returns:

  • (String)

    human readable diff between ‘expected` and `actual`.

Since:

  • 0.1.0



8
9
10
# File 'lib/assert_dirs_equal/matcher.rb', line 8

def self.perform(expected, actual)
  "Expected: #{expected.inspect}\n  Actual: #{actual.inspect}"
end