Sha256: b0297b717e6c3ff765f13f9b2c5e88527e70febd69fe64b15e89585c8943a358
Contents?: true
Size: 381 Bytes
Versions: 5
Compression:
Stored size: 381 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), "test_helper")) $missing_constants = [] class Object def self.const_missing(name) $missing_constants << name super(name) end end class Foo < Ohm::Model set :bars, Bar end class Tests < Test::Unit::TestCase test "calls other const_missing hooks" do assert_equal [:Bar], $missing_constants end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ohm-0.1.0.rc5 | test/wrapper_test.rb |
ohm-0.0.38 | test/wrapper_test.rb |
ohm-0.0.37 | test/wrapper_test.rb |
ohm-0.1.0.rc4 | test/wrapper_test.rb |
ohm-0.0.36 | test/wrapper_test.rb |