Module: XamplTestRedis

Defined in:
lib/xamplr/tests/redis/spec_helper.rb

Defined Under Namespace

Classes: DroolingIdiotPersistedObject

Constant Summary collapse

@@load_time =
Time.now.to_i.to_s
@@scratch_name_count =
0

Class Method Summary collapse

Class Method Details

.scratch_name(prefix = 'scratch') ⇒ Object



25
26
27
# File 'lib/xamplr/tests/redis/spec_helper.rb', line 25

def XamplTestRedis.scratch_name(prefix='scratch')
  "#{prefix}-#{ @@load_time }-#{ @@scratch_name_count += 1 }"
end