Sha256: 46a7792f83490e8c9338369dd3cc8a16b1fa362106361e8536d9e614f9c66c52

Contents?: true

Size: 182 Bytes

Versions: 40

Compression:

Stored size: 182 Bytes

Contents

module ConstantsHelpers

  extend self

  # helper to remove constants after test-runs.
  def undef_constant(mod, constant_name)
    mod.send(:remove_const, constant_name)
  end
end

Version data entries

40 entries across 38 versions & 6 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/virtus-2.0.0/spec/shared/constants_helpers.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/virtus-2.0.0/spec/shared/constants_helpers.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/virtus-2.0.0/spec/shared/constants_helpers.rb
virtus2-2.1.0 spec/shared/constants_helpers.rb
virtus2-2.0.2 spec/shared/constants_helpers.rb
virtus2-2.0.1 spec/shared/constants_helpers.rb
virtus-2.0.0 spec/shared/constants_helpers.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/virtus-1.0.5/spec/shared/constants_helpers.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/virtus-1.0.5/spec/shared/constants_helpers.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/virtus-1.0.5/spec/shared/constants_helpers.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/virtus-1.0.5/spec/shared/constants_helpers.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/virtus-1.0.5/spec/shared/constants_helpers.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/virtus-1.0.5/spec/shared/constants_helpers.rb
virtus-1.0.5 spec/shared/constants_helpers.rb
virtus-1.0.4 spec/shared/constants_helpers.rb
virtus-1.0.3 spec/shared/constants_helpers.rb
virtus-1.0.2 spec/shared/constants_helpers.rb
virtus-1.0.1 spec/shared/constants_helpers.rb
virtus-1.0.0 spec/shared/constants_helpers.rb
virtus-1.0.0.rc2 spec/shared/constants_helpers.rb