I have this code in an rspec test:
specify 'Saves files to S3' do
subject.upload
expect(connection.directories.get(credentials[:bucket]).files.map(&:key))
.to include("#{directory}/groucho.jpg")
end
The subject.upload
adds the file to S3 and the expect
pulls down the list of files in the bucket, looking for the name of the file just uploaded. The expect
used to pass (like two days ago), but now it does not.
Even if I sleep for a while, the expect
never passes. I have no idea what changed, but am looking for some guidance.