# File lib/rspec/mocks/error_generator.rb, line 64 def method_call_args_description(args) if args.first.is_a?(ArgumentMatchers::AnyArgsMatcher) " with any arguments" elsif args.first.is_a?(ArgumentMatchers::NoArgsMatcher) " with no arguments" elsif args.length > 0 " with arguments: #{args.inspect.gsub(/\A\[(.+)\]\z/, '(\1)')}" else "" end end