Sha256: 599a97c91dbba877702c6fe7e04588f6ae74aab15e54941265fe68bcb0c0c0a4
Contents?: true
Size: 386 Bytes
Versions: 4
Compression:
Stored size: 386 Bytes
Contents
# frozen_string_literal: true require 'securerandom' module RSpec module Hive class DbName class << self def random_name "#{timestamp}_#{random_key}" end private def timestamp Time.now.getutc.to_i.to_s end def random_key SecureRandom.uuid.delete('-') end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rspec-hive-0.6.3 | lib/rspec/hive/db_name.rb |
rspec-hive-0.6.2 | lib/rspec/hive/db_name.rb |
rspec-hive-0.6.1 | lib/rspec/hive/db_name.rb |
rspec-hive-0.6.0 | lib/rspec/hive/db_name.rb |