lib/mocha/inspect.rb in mocha-2.0.2 vs lib/mocha/inspect.rb in mocha-2.0.3
- old
+ new
@@ -4,10 +4,10 @@
module Inspect
module ObjectMethods
def mocha_inspect
address = __id__ * 2
address += 0x100000000 if address < 0
- inspect =~ /#</ ? "#<#{self.class}:0x#{Kernel.format('%x', address)}>" : inspect
+ inspect =~ /#</ ? "#<#{self.class}:0x#{Kernel.format('%<address>x', address: address)}>" : inspect
end
end
module ArrayMethods
def mocha_inspect(wrapped = true)