module Minitest::Assertions
Public Instance Methods
assert_equal_interfaces(object_a, object_b)
click to toggle source
Fails unless +object_a and +object_a have the same interfaces (in terms of method and their arity).
# File lib/interface_comparator/minitest.rb, line 5 def assert_equal_interfaces(object_a, object_b) assert InterfaceComparator.same?(object_a, object_b), "Interfaces are not the same: #{InterfaceComparator.diff(object_a, object_b)}" end
refute_equal_interfaces(object_a, object_b)
click to toggle source
Fails if +object_a and +object_a have the same interfaces (in terms of method and their arity).
# File lib/interface_comparator/minitest.rb, line 13 def refute_equal_interfaces(object_a, object_b) refute InterfaceComparator.same?(object_a, object_b), "Interfaces are of these two object are the same" end