Sha256: 1d9cb64aa835d45c680319afce837941c9af5ebb2096f8c879a11fc421a9fbf5
Contents?: true
Size: 492 Bytes
Versions: 2
Compression:
Stored size: 492 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 module Minitest class Test def self.it(name, &block) test_name = "test_#{name.gsub(/\s+/, "_")}".to_sym define_method(test_name, &block) end end end require "webmock/minitest" WebMock.disable_net_connect!
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
textmagic-0.7.1 | test/test_helper.rb |
textmagic-0.7.0 | test/test_helper.rb |