# File lib/rhc/rest/mock.rb, line 28 def credentials_for(with_auth) if with_auth == true [respond_to?(:username) ? self.username : mock_user, respond_to?(:password) ? self.password : mock_pass] elsif with_auth with_auth.values_at(:user, :password) end end