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

[tests] make collection gsub to find nils a bit more resilient/unique

This commit is contained in:
geemus 2011-06-20 23:32:48 -07:00
parent c663289072
commit ed35bbafcc

View file

@ -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/, 'a')
@identity = @identity.to_s.gsub(/\w/, rand(10).to_s)
end
tests("#get('#{@identity}')").returns(nil) do