[tests] trying again to make collection gsub to get nils more resilient/unique
This commit is contained in:
parent
7f9d0ee944
commit
6ea8439501
|
@ -38,7 +38,7 @@ def collection_tests(collection, params = {}, mocks_implemented = true)
|
|||
tests('failure') do
|
||||
|
||||
if !Fog.mocking? || mocks_implemented
|
||||
@identity = @identity.to_s.gsub(/\w/, rand(10).to_s)
|
||||
@identity = @identity.to_s.gsub(/\w/, Fog::Mock.random_letters(1))
|
||||
end
|
||||
|
||||
tests("#get('#{@identity}')").returns(nil) do
|
||||
|
|
Loading…
Reference in New Issue