Sha256: 67de7a7cd5ffb1ec4998270f09d094091526609edff1118eb4b596e4e07cba84
Contents?: true
Size: 614 Bytes
Versions: 38
Compression:
Stored size: 614 Bytes
Contents
class Ey::Core::Client class Real def reset_password(_params) params = Cistern::Hash.stringify_keys(_params) request( :method => :put, :path => "/password-resets/#{params["reset_token"]}", :body => { :password_reset => { :password => params["password"] } }, ) end end # Real class Mock def reset_password(*) response( :body => { "password_reset" => { "accepted" => true }, }, :status => 201, ) end end # Mock end # Ey::Core::Client
Version data entries
38 entries across 38 versions & 2 rubygems