spec/spec_helper.rb in upyun-1.0.3 vs spec/spec_helper.rb in upyun-1.0.4
- old
+ new
@@ -1,4 +1,10 @@
require 'coveralls'
Coveralls.wear!
require 'upyun'
+
+class String
+ def self.random(length=5)
+ ('a'..'z').sort_by {rand}[0, length].join
+ end
+end