Skip to content

Commit

Permalink
delete user
Browse files Browse the repository at this point in the history
added proper vcr cassette for user deletion
  • Loading branch information
r4cc00n committed Nov 22, 2021
1 parent fed72a4 commit 566bcc7
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 2 deletions.
65 changes: 65 additions & 0 deletions spec/cassettes/delete_user.yml

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

5 changes: 3 additions & 2 deletions spec/client/users_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,9 @@
describe '#delete_user' do
it 'returns an empty object.' do
VCR.use_cassette('delete_user') do
resp, = client.delete_user(USERS_USER_ID)
expect(resp.to_h).to(be == {})
resp, status = client.delete_user(USERS_USER_ID)
expect(resp).to(be_empty)
expect(status).to(be == 204)
end
end
end
Expand Down

0 comments on commit 566bcc7

Please sign in to comment.