spec/api_spec.rb in cloudinary-1.3.0 vs spec/api_spec.rb in cloudinary-1.4.0

- old
+ new

@@ -371,9 +371,13 @@ Cloudinary::Api.root_folders expect(RestClient::Request).to receive(:execute).with(deep_hash_value( [:url] => /.*\/folders\/test_folder1$/, [:method] => :get)) Cloudinary::Api.subfolders("test_folder1") end + it "should throw if folder is missing" do + Cloudinary::Api.subfolders("I_do_not_exist") + end + describe '.restore' do it 'should restore a deleted resource' do expect(RestClient::Request).to receive(:execute).with(deep_hash_value( [:payload, :public_ids] => "api_test_restore", [:url] => /.*\/restore$/)) Cloudinary::Api.restore("api_test_restore") end