Permalink
Browse files

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

  • Loading branch information...
1 parent c663289 commit ed35bbafcc6f3ba40399cfc172add64934375e57 @geemus geemus committed Jun 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/helpers/collection_helper.rb
@@ -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

0 comments on commit ed35bba

Please sign in to comment.