lib/mock_binding.rb in activesalesforce-0.3.1 vs lib/mock_binding.rb in activesalesforce-0.3.2
- old
+ new
@@ -43,11 +43,11 @@
#Call a method on the remote server. Arguments can be
#a hash or (if order is important) an array of alternating
#keys and values.
def call_remote(method, args)
- # Star-out any passwords
- safe_args = args.inject([]) {|memo, v| memo << ((memo.last == :username or memo.last == :password) ? "*" * v.length : v) }
+ # Blank out username and password
+ safe_args = args.inject([]) {|memo, v| memo << ((memo.last == :username or memo.last == :password) ? "" : v) }
key = "#{method}(#{safe_args.join(':')})"
if @recording
response = super(method, args)
@recorded_responses[key] = response