Skip to content

Commit

Permalink
bug: Fixed failing spec
Browse files Browse the repository at this point in the history
  • Loading branch information
jylamont committed Apr 18, 2024
1 parent 7d357cc commit 64a710a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec/lib/api/users/delete_api_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@

describe :request do
it "should send a request to the Vero API" do
RestClient.should_receive(:post).with("https://api.getvero.com/api/v2/users/delete.json", {:auth_token => 'abcd', :id => '1234'})
RestClient.stub(:post).and_return(200)
expect(RestClient).to receive(:post).with("https://api.getvero.com/api/v2/users/delete.json", {:auth_token => 'abcd', :id => '1234'}).and_return(200)
subject.send(:request)
end
end
Expand Down

0 comments on commit 64a710a

Please sign in to comment.