Permalink
Browse files

[tests] trying again to make collection gsub to get nils more resilie…

…nt/unique
  • Loading branch information...
1 parent 7f9d0ee commit 6ea8439501da0c526f164dda21a439828e2ba975 @geemus geemus committed Jun 22, 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/, rand(10).to_s)
+ @identity = @identity.to_s.gsub(/\w/, Fog::Mock.random_letters(1))
end
tests("#get('#{@identity}')").returns(nil) do

0 comments on commit 6ea8439

Please sign in to comment.