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: 0b52094ba16c32b092b3042ff9d3ca19ab29b91c
4
- data.tar.gz: e310237d68824ff9f85fdc71bda05bec443c9aec
3
+ metadata.gz: 3efd0d4afe605894d4e3d857a2225c44a1dffd3b
4
+ data.tar.gz: 5f96d9848f246c3746580120d1abbe87523eb96f
5
5
  SHA512:
6
- metadata.gz: b5e029cd3e36be31d74b648ecc579962e76683233e9f61a4732a0dc0b62317cf0efaa806be1e06ec7e86c9c9a003dd12afa3c8933319cdd374e071346c08abb9
7
- data.tar.gz: 70dbff94503155508552f5517d9bc9382a54e3f3d48c1c91f4941b6bff739c49366c9ec9790760247f149cf7e647a912532d58a85e706c87bf8eed72c2d50bac
6
+ metadata.gz: e7b8d014e0c62e8651946dc6063d41356fca576987b9f826fceb2184c0c98ae7a18d44437bf961407cf4c1c6454ceb30af3fd32de6ecc72f33f6cf5fde9bae6b
7
+ data.tar.gz: 2345968862f0b4037fadbe0ae148f146c4d0943ecfb3f3942a7a1934092c3854522e0f916f98e37814d7df800647385f99dfaaddbbd97e6d9fff0ca37ab8e199
@@ -1,5 +1,5 @@
1
1
  module Carrierwave
2
2
  module AzureRM
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
  end
5
5
  end
@@ -80,7 +80,7 @@ module CarrierWave
80
80
  end
81
81
 
82
82
  def exists?
83
- blob.nil?
83
+ !blob.nil?
84
84
  end
85
85
 
86
86
  def size
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carrierwave-azure_rm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - nooulaif