1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

skip trying to get contents from the private url when mocked

This commit is contained in:
Wesley Beary 2009-10-06 20:35:28 -07:00
parent 5dbed998a6
commit d94722e01a

View file

@ -96,7 +96,9 @@ describe 'Fog::AWS::S3::Objects' do
file = File.open(File.dirname(__FILE__) + '/../../../lorem.txt', 'r')
object = @bucket.objects.create(:key => 'fogobjectname', :body => file)
url = @bucket.objects.get_url('fogobjectname', Time.now + 60 * 10)
unless Fog.mocking?
open(url).read.should == File.open(File.dirname(__FILE__) + '/../../../lorem.txt', 'r').read
end
object.destroy
end