test/abstract.rb in dm-is-reflective-0.9.0 vs test/abstract.rb in dm-is-reflective-1.0.0
- old
+ new
@@ -27,9 +27,10 @@
[:user_id, Integer, AttrCommon]]
end
# there's differences between adapters
def super_user_fields
+ Object.const_set(:MysqlTest, Class.new) unless defined?(MysqlTest) # dummy
case self
when MysqlTest # Mysql couldn't tell it's boolean or tinyint
[[:bool, Integer, AttrCommon],
[:id, DataMapper::Property::Serial, AttrCommonPK]]