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