I can't seem to reproduce a file copy in a testing environment. I'm trying to test that I can set the content type of a Fog AWS S3 file, but it looks like the file isn't changing when I try to update it. It works when not mocking.
Fog.mock!
file = fog_dir.files.create(:key => "image.png", :public => true)
options = {
'Content-Type' => "image/png",
'x-amz-metadata-directive' => 'REPLACE'
}
file.copy file.directory.key, file.key, options
# Failing
fog_dir.files.head(file_name).content_type.should eql "image/png"