test/test_signaturit_client.rb in signaturit-sdk-0.0.1 vs test/test_signaturit_client.rb in signaturit-sdk-0.0.2
- old
+ new
@@ -23,10 +23,18 @@
def test_set_document_storage
stub_request(:any, /.*/).to_return(:body => '{}')
@client.set_document_storage('sftp', {})
- assert_requested :patch, 'https://api.signaturit.com/v2/account.json', :headers => { :Authorization => 'Bearer a_token' }
+ assert_requested :post, 'https://api.signaturit.com/v2/account/storage.json', :headers => { :Authorization => 'Bearer a_token' }
+ end
+
+ def test_revert_to_default_document_storage
+ stub_request(:any, /.*/).to_return(:body => '{}')
+
+ @client.revert_to_default_document_storage()
+
+ assert_requested :delete, 'https://api.signaturit.com/v2/account/storage.json', :headers => { :Authorization => 'Bearer a_token' }
end
def test_get_signature
stub_request(:any, /.*/).to_return(:body => '{}')