<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -2,8 +2,11 @@ YUI({ useBrowserConsole: false }).use('console', 'test', function(Y) {
     var suite = new Y.Test.Suite({
         name: &quot;DUI&quot;,
         
-        setUp: function() { 
+        setUp: function() {
             this.dyn = new DUI.Class({
+                init: function(arg) {
+                    this.quux = arg;
+                },
                 foo: 1,
                 bar: function(){},
                 baz: null
@@ -25,6 +28,11 @@ YUI({ useBrowserConsole: false }).use('console', 'test', function(Y) {
     suite.add(new Y.Test.Case({
         name: &quot;Create Dynamic Class&quot;,
         
+        testConstructor: function() {
+            var c = new suite.dyn(4);
+            Y.Assert.areSame(4, c.quux, &quot;Constructor should set member 'quux' to 4&quot;);
+        },
+        
         testNumericalMember: function() {
             Y.Assert.areSame(1, suite.dyn.prototype.foo, &quot;Member 'foo' should be 1&quot;);
         },
@@ -120,6 +128,12 @@ YUI({ useBrowserConsole: false }).use('console', 'test', function(Y) {
     suite.add(new Y.Test.Case({
         name: &quot;DUI iterators&quot;,
         
+        _should: {
+            error: {
+                testEachError: new Error('DUI.Class.each must be called with a function as its first argument.')
+            }
+        },
+        
         setUp: function() {
             this.eachClass = new DUI.Class({
                 foo: 1,
@@ -150,6 +164,10 @@ YUI({ useBrowserConsole: false }).use('console', 'test', function(Y) {
             Y.Assert.areSame('foo1bar2baz3', result, &quot;DUI each should call its arg on every iterable member of a class&quot;);
         },
         
+        testEachError: function() {
+            this.eachClass.each();
+        },
+        
         testDontEnum: function() {
             var result = '';
             </diff>
      <filename>DUITests.js</filename>
    </modified>
    <modified>
      <diff>@@ -79,38 +79,6 @@ DUI = {
         }
         
         return DUI.Class.prototype.ns.apply(context ? context : window, [ns, value]);
-    },
-    
-    test: function(tests) {
-        tests = tests || {};
-        
-        //FUH -- Fireunit Helper
-        var FUH = new DUI.Class({
-            tests: {},
-
-            add: function(testClass)
-            {
-                var _this = this;
-
-                testClass.each(function(key) {
-                    _this.tests[key] = this;
-                });
-
-                return this;
-            },
-
-            run: function()
-            {
-                //Make rockets go now!
-                $.each(this.tests, function(key) {
-                    fireunit.log('FUH is about to run: ' + key);
-
-                    this();
-                });
-            }
-        });
-        
-        new FUH().add(new DUI.Class(tests,true)).run();
     }
 };
 
@@ -149,7 +117,7 @@ $.extend(DUI.Class.prototype, {
             }
         }.apply(copy);
         
-        $.extend(copy.prototype, this.prototype);
+        $.extend(true, copy.prototype, this.prototype);
         return copy.prototype.create.apply(copy, arguments);
     },
     </diff>
      <filename>src/DUI.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2cf5510795036c2a6cc671c70f3a24d6a5b4724c</id>
    </parent>
  </parents>
  <author>
    <name>Micah Snyder</name>
    <email>micah.snyder@gmail.com</email>
  </author>
  <url>http://github.com/digg/dui/commit/bc0594d58a309c41dd7d78ed9bddc7ab4f1c34f7</url>
  <id>bc0594d58a309c41dd7d78ed9bddc7ab4f1c34f7</id>
  <committed-date>2009-08-14T17:02:26-07:00</committed-date>
  <authored-date>2009-08-14T17:02:26-07:00</authored-date>
  <message>Removed cruft, fixed final tests.</message>
  <tree>44668f162477c4baf7fe82a13b977c60c49c3bc0</tree>
  <committer>
    <name>Micah Snyder</name>
    <email>micah.snyder@gmail.com</email>
  </committer>
</commit>
