lib/rspec/mocks/error_generator.rb in rspec-mocks-diag-3.8.1.2 vs lib/rspec/mocks/error_generator.rb in rspec-mocks-diag-3.9.1.1
- old
+ new
@@ -45,10 +45,10 @@
@opts ||= {}
end
# @private
def raise_unexpected_message_error(message, args)
- __raise "#{intro} received unexpected message :#{message} with #{format_args(args)}\nDouble instantiated from:\n#{@target._rspec_backtrace.map { |line| ' ' + line }.join("\n")}"
+ __raise "#{intro} received unexpected message :#{message} with #{format_args(args)}"
end
# @private
def raise_unexpected_message_args_error(expectation, args_for_multiple_calls, source_id=nil)
__raise error_message(expectation, args_for_multiple_calls), nil, source_id