Skip to content

Commit

Permalink
Add a failing spec for #2583
Browse files Browse the repository at this point in the history
  • Loading branch information
mshibuya committed Aug 26, 2021
1 parent 27218a9 commit 311837b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/storage/fog_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,14 @@ def check_file
end
end

describe '#copy_to' do
it "uses Fog's File#copy, instead of Storage#copy_object" do
expect(@fog_file.send(:file)).to receive(:copy).with(anything, 'uploads/new_path.jpg', anything).and_call_original

@fog_file.copy_to('uploads/new_path.jpg')
end
end

describe '#copy_options' do
let(:fog_attributes) { { 'x-amz-server-side-encryption' => 'AES256' } }

Expand Down

0 comments on commit 311837b

Please sign in to comment.