Sha256: 20d5059f75a19b3b7109d269f50bf0fba87df6dca16e073a56316e6d4527b07e

Contents?: true

Size: 350 Bytes

Versions: 1

Compression:

Stored size: 350 Bytes

Contents

require 'test/unit'
require 'test/unit/power_assert'

def virtual_dynamo_context(name)
  Thread.current[:dynamo_contexts] ||= {}
  Thread.current[:dynamo_contexts][name] = true
  begin
    yield
  ensure
    Thread.current[:dynamo_contexts].delete(name)
  end
end

def virtual_dynamo_super(*args)
  Thread.current[:dynamo_stack].last.call(*args)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dyna_mo-0.0.1 test/helper.rb