Sha256: 1052ba6346153e973f9a2339774f73f7424a94199620971c0aba2abd92e1504b
Contents?: true
Size: 656 Bytes
Versions: 39
Compression:
Stored size: 656 Bytes
Contents
require 'spec_helper' describe "reset_password" do context "with an HMAC client" do let!(:client) { create_client } it "should create a password reset request" do email = create_user.email password_reset = client.create_password_reset(email: email, redirect_uri: "http://example.com").body["password_reset"] expect(password_reset).to eq("sent" => true) end it "should reset a users password", :mock_only do password_reset = client.reset_password(reset_token: SecureRandom.hex(6), password: SecureRandom.hex(6)).body["password_reset"] expect(password_reset).to eq("accepted" => true) end end end
Version data entries
39 entries across 39 versions & 2 rubygems