Sha256: add1d48795655a04db273698089aea113a6e33639efa114c18a67d6e95c67d38

Contents?: true

Size: 287 Bytes

Versions: 4

Compression:

Stored size: 287 Bytes

Contents

require File.join(File.dirname(__FILE__),'..','lib','activetiger')

def with_constants(constants, &block)
  constants.each do |constant, val|
    Object.const_set(constant, val)
  end

  block.call

  constants.each do |constant, val|
    Object.send(:remove_const, constant)
  end
end

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
inventables-activetiger-0.1.0 spec/spec_helper.rb
garrettlancaster-activetiger-0.1.3 spec/spec_helper.rb
activetiger-0.1.1 spec/spec_helper.rb
activetiger-0.1.0 spec/spec_helper.rb