lib/spy/call_log.rb in spy-1.0.3 vs lib/spy/call_log.rb in spy-1.0.4
- old
+ new
@@ -8,19 +8,22 @@
# @return [String] where the method was called from
#
# @!attribute [r] args
# @return [Array] arguments were sent to the method
#
+ # @!attribute [r] kwargs
+ # @return [Array] keyword arguments were sent to the method
+ #
# @!attribute [r] block
# @return [Proc] the block that was sent to the method
#
# @!attribute [r] result
# @return The result of the method of being stubbed, or called through
- attr_reader :object, :called_from, :args, :block, :result
+ attr_reader :object, :called_from, :args, :kwargs, :block, :result
- def initialize(object, called_from, args, block, result)
- @object, @called_from, @args, @block, @result = object, called_from, args, block, result
+ def initialize(object, called_from, args, kwargs, block, result)
+ @object, @called_from, @args, @kwargs, @block, @result = object, called_from, args, kwargs, block, result
end
end
end