diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2018-06-05 16:17:04 +0200 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2018-06-05 16:48:42 +0200 |
commit | 53d1c87c8673fa6c9d83519490698b37d67572df (patch) | |
tree | 7012ea95208e7b93bc8ddef4c6f45c24662cdbb1 /spec/lib/object_storage | |
parent | 3201988b4d3804cbdf2560ee9064d0dbc43bf354 (diff) | |
download | gitlab-ce-53d1c87c8673fa6c9d83519490698b37d67572df.tar.gz |
Fix Fog mocking
Diffstat (limited to 'spec/lib/object_storage')
-rw-r--r-- | spec/lib/object_storage/direct_upload_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/lib/object_storage/direct_upload_spec.rb b/spec/lib/object_storage/direct_upload_spec.rb index 5187821e8f4..e0569218d78 100644 --- a/spec/lib/object_storage/direct_upload_spec.rb +++ b/spec/lib/object_storage/direct_upload_spec.rb @@ -17,6 +17,10 @@ describe ObjectStorage::DirectUpload do let(:direct_upload) { described_class.new(credentials, bucket_name, object_name, has_length: has_length, maximum_size: maximum_size) } + before do + Fog.unmock! + end + describe '#has_length' do context 'is known' do let(:has_length) { true } |