class Minitest::ExtendedAssertions::DeepComparator::Difference
Attributes
actual[R]
expected[R]
path[R]
Public Class Methods
new(path, expected, actual)
click to toggle source
# File lib/minitest/extended_assertions/deep_comparator.rb, line 9 def initialize(path, expected, actual) @path = path @expected = expected @actual = actual end
Public Instance Methods
to_h()
click to toggle source
# File lib/minitest/extended_assertions/deep_comparator.rb, line 15 def to_h { path: path, expected: expected, actual: actual } end
to_s()
click to toggle source
# File lib/minitest/extended_assertions/deep_comparator.rb, line 23 def to_s [path, "Expected: #{expected.inspect}", " Actual: #{actual.inspect}"].compact.join("\n") end