Sha256: 052fac9a26df3f9179826a92fd63180a882384262b106e88271e27a700ec8ac5

Contents?: true

Size: 352 Bytes

Versions: 13

Compression:

Stored size: 352 Bytes

Contents

# encoding: UTF-8

require File.expand_path("./helper", File.dirname(__FILE__))

prepare.clear

$missing_constants = []

class Object
  def self.const_missing(name)
    $missing_constants << name
    super(name)
  end
end

class Foo < Ohm::Model
  set :bars, Bar
end

test "calls other const_missing hooks" do
  assert [:Bar] == $missing_constants
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ohm-1.0.0.rc4 test/unused/wrapper_test.rb
ohm-1.0.0.rc3 test/unused/wrapper_test.rb
ohm-1.0.0.rc2 test/unused/wrapper_test.rb
ohm-1.0.0.rc1 test/unused/wrapper_test.rb
ohm-1.0.0.alpha2 test/unused/wrapper_test.rb
ohm-1.0.0.alpha1 test/unused/wrapper_test.rb
ohm-0.1.5 test/wrapper_test.rb
ohm-0.1.4 test/wrapper_test.rb
ohm-0.1.3 test/wrapper_test.rb
ohm-0.1.2 test/wrapper_test.rb
ohm-0.1.1 test/wrapper_test.rb
ohm-0.1.0 test/wrapper_test.rb
ohm-0.1.0.rc6 test/wrapper_test.rb