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:
parent
c2d58e493d
commit
1b32a08d3f
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue