<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -2,7 +2,7 @@ TODO:
 
 * IdentityMap
 * ObjectEnumerator
-* Load a complex object that spans more than one table
+* Save a complex object that spans more than one table
 * Load an object that uses a Discriminator
 * Save an Association
 * Load an Association</diff>
      <filename>TODO</filename>
    </modified>
    <modified>
      <diff>@@ -4,6 +4,12 @@ module Wheels
       class UnmappedClassError &lt; StandardError
       end
 
+      class UnsupportedTypeError &lt; StandardError
+        def initialize(type)
+          super(&quot;#{type.inspect} is not a registered Wheels::Orm::Type (#{Wheels::Orm::Types.inspect})&quot;)
+        end
+      end
+
       include Enumerable
 
       def initialize</diff>
      <filename>lib/wheels/orm/mappings.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,22 +3,24 @@ module Wheels
     class Mappings
       class Field
 
-        include Test::Unit::Assertions
-
         def initialize(mapping, name, type, default = nil)
           begin
-            assert_kind_of(Wheels::Orm::Mappings::Mapping, mapping, &quot;Field#mapping must be a Mapping&quot;)
+            raise ArgumentError.new(&quot;Field#mapping must be a Mapping&quot;) unless mapping.kind_of?(Wheels::Orm::Mappings::Mapping)
             @mapping = mapping
 
-            assert_kind_of(String, name, &quot;Field#name must be a String&quot;)
-            assert_not_blank(name, &quot;Field#name must not be blank&quot;)
+            raise ArgumentError.new(&quot;Field#name must be a String&quot;) unless name.is_a?(String)
+            raise ArgumentError.new(&quot;Field#name must not be blank&quot;) if name.blank?
             @name = name
 
             if type.is_a?(Class)
-              type = Wheels::Orm::Types[type.to_s].new
+              if defined_type = Wheels::Orm::Types[type.to_s]
+                type = defined_type.new
+              else
+                raise Wheels::Orm::Mappings::UnsupportedTypeError.new(type)
+              end
             end
 
-            assert_kind_of(Wheels::Orm::Type, type, &quot;Field#type must be a Wheels::Orm::Type&quot;)
+            raise ArgumentError.new(&quot;Field#type must be a Wheels::Orm::Type&quot;) unless type.is_a?(Wheels::Orm::Type)
             @type = type
 
             @default = default</diff>
      <filename>lib/wheels/orm/mappings/field.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>86e63577b432466792c6f0f4ac6b7c1490475e05</id>
    </parent>
  </parents>
  <author>
    <name>Sam Smoot</name>
    <email>ssmoot@gmail.com</email>
  </author>
  <url>http://github.com/wiecklabs/clipper/commit/488a6a49b2e9cae7d7940d985dac55e47161dca0</url>
  <id>488a6a49b2e9cae7d7940d985dac55e47161dca0</id>
  <committed-date>2009-04-10T09:08:26-07:00</committed-date>
  <authored-date>2009-04-10T09:08:26-07:00</authored-date>
  <message>Removed test-unit-assertions from field.rb.</message>
  <tree>61059a367b14f04990e0bc4d94a53331b7bff0cd</tree>
  <committer>
    <name>Sam Smoot</name>
    <email>ssmoot@gmail.com</email>
  </committer>
</commit>
