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