test/test_helper.rb in bobes-textmagic-0.3.1 vs test/test_helper.rb in bobes-textmagic-0.3.2
- old
+ new
@@ -11,10 +11,10 @@
require 'textmagic'
class Test::Unit::TestCase
end
-def random_string(legth = 5)
+def random_string(legth = 5 + rand(10))
Array.new(legth) { rand(36).to_s(36) }.join
end
def random_phone
rand(10 ** 12).to_s
\ No newline at end of file