carrierwave-azure_rm 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3efd0d4afe605894d4e3d857a2225c44a1dffd3b
|
4
|
+
data.tar.gz: 5f96d9848f246c3746580120d1abbe87523eb96f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7b8d014e0c62e8651946dc6063d41356fca576987b9f826fceb2184c0c98ae7a18d44437bf961407cf4c1c6454ceb30af3fd32de6ecc72f33f6cf5fde9bae6b
|
7
|
+
data.tar.gz: 2345968862f0b4037fadbe0ae148f146c4d0943ecfb3f3942a7a1934092c3854522e0f916f98e37814d7df800647385f99dfaaddbbd97e6d9fff0ca37ab8e199
|
@@ -35,4 +35,18 @@ describe CarrierWave::Storage::AzureRM::File do
|
|
35
35
|
end
|
36
36
|
end
|
37
37
|
end
|
38
|
+
|
39
|
+
describe '#exists?' do
|
40
|
+
before do
|
41
|
+
allow(storage.connection).to receive(:get_blob).and_return(nil)
|
42
|
+
end
|
43
|
+
|
44
|
+
subject { CarrierWave::Storage::AzureRM::File.new(uploader, storage.connection, 'dummy.txt').exists? }
|
45
|
+
|
46
|
+
context 'when blob file does not exist' do
|
47
|
+
it 'should return false' do
|
48
|
+
expect(subject).to eql false
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
38
52
|
end
|