Skip to content

Commit

Permalink
Merge branch 'resend-welcome-email' into delete_user
Browse files Browse the repository at this point in the history
  • Loading branch information
r4cc00n committed Nov 22, 2021
2 parents 566bcc7 + 18627d7 commit 4cdaf51
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 3 deletions.
71 changes: 71 additions & 0 deletions spec/cassettes/reactivate_user.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions spec/client/users_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,11 @@
end

describe '#reactivate_user' do
it 'returns empty object by default.' do
it 'returns activation token by default.' do
VCR.use_cassette('reactivate_user') do
resp, = client.reactivate_user(USERS_USER_ID)
expect(resp.to_h).to(be == {})
resp, status = client.reactivate_user(USERS_USER_ID)
expect(status).to(be == 200)
expect(resp[:activationToken]).to (be == '-9OhPWRjr7_S8t2iV5_w')
end
end
end
Expand Down

0 comments on commit 4cdaf51

Please sign in to comment.