Skip to content
This repository was archived by the owner on Jul 13, 2023. It is now read-only.

Commit 1ff4a9e

Browse files
committed
Update fog_spec.rb
Added test on copy_to_local
1 parent 58bad59 commit 1ff4a9e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

spec/paperclip/storage/fog_spec.rb

+7
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,13 @@ def custom_method
183183
tempfile.close
184184
end
185185

186+
it 'is able to be handled when missing while copying to a local file' do
187+
tempfile = Tempfile.new("known_location")
188+
tempfile.binmode
189+
assert_equal false, @dummy.avatar.copy_to_local_file(:original, tempfile.path)
190+
tempfile.close
191+
end
192+
186193
it "passes the content type to the Fog::Storage::AWS::Files instance" do
187194
Fog::Storage::AWS::Files.any_instance.expects(:create).with do |hash|
188195
hash[:content_type]

0 commit comments

Comments
 (0)