From 64a710acdf6ec9e3b60fdce6d69d233d146525ab Mon Sep 17 00:00:00 2001 From: James Lamont Date: Wed, 17 Apr 2024 17:08:15 -0400 Subject: [PATCH] bug: Fixed failing spec --- spec/lib/api/users/delete_api_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/lib/api/users/delete_api_spec.rb b/spec/lib/api/users/delete_api_spec.rb index a1e2c9d..0c1dd9a 100644 --- a/spec/lib/api/users/delete_api_spec.rb +++ b/spec/lib/api/users/delete_api_spec.rb @@ -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