We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0fc75b commit b0c6e1bCopy full SHA for b0c6e1b
test/imagekit/api_service/file_test.rb
@@ -889,6 +889,13 @@
889
expect(@ac[:method]).to eq('put')
890
expect(resp[:code]).to eq(200)
891
end
892
+
893
+ it 'test_rename with the option purge_cache' do
894
+ source_file = 'test/dummy.png'
895
+ new_name = 'my_image.png'
896
+ resp = @sut.rename(file_path: source_file, new_file_name: new_name, purge_cache: true)
897
+ expect(@ac[:payload]).to eq("{\"filePath\":\"test/dummy.png\",\"newFileName\":\"my_image.png\",\"purgeCache\":true}")
898
+ end
899
900
901
context 'stream file' do
0 commit comments