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

don't run the opening a url in mock mode

This commit is contained in:
Wesley Beary 2009-10-08 23:13:17 -07:00
parent c2d58e493d
commit 1b32a08d3f

View file

@ -38,7 +38,9 @@ describe 'S3.get_object' do
it 'should return a signed expiring url' do
url = s3.get_object_url('foggetobject', 'fog_get_object', Time.now + 60 * 10)
file = File.open(File.dirname(__FILE__) + '/../../../lorem.txt', 'r')
open(url).read.should == file.read
unless Fog.mocking?
open(url).read.should == file.read
end
end
end