Sha256: 3319869ffadb7745dfbbec02c1f5532748776e5d4f0398d4d0816faafc884be7
Contents?: true
Size: 411 Bytes
Versions: 1
Compression:
Stored size: 411 Bytes
Contents
require "bundler" Bundler.require 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 end def random_hash hash = {} 3.times { hash[random_string] = random_string } hash end class Minitest::Test def self.it(name, &block) test_name = "test_#{name.gsub(/\s+/,'_')}".to_sym define_method(test_name, &block) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
textmagic-0.6.0 | test/test_helper.rb |