<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -4,3 +4,4 @@ nbproject/**
 pkg/**
 doc/**
 email.txt
+test/database.sqlite3</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -1,11 +1,57 @@
 require File.dirname(__FILE__) + '/test_helper.rb'
 
+User.depends_on :profile, :attrs =&gt; [:first_name, :last_name, :email]
+
 class TestClassyInheritance &lt; Test::Unit::TestCase
 
   def setup
+    @user = User.new
+  end
+  
+  def test_active_record_should_have_classy_inheritance_included
+    assert ActiveRecord::Base.included_modules.include?(Stonean::ClassyInheritance)
+  end
+  
+  def test_active_record_should_respond_to_depends_on
+    assert ActiveRecord::Base.respond_to?(:depends_on)
+  end
+  
+  def test_user_should_respond_to_first_name
+    assert @user.respond_to?(:first_name)
+  end
+  
+  def test_user_should_respond_to_first_name=
+    assert @user.respond_to?(:first_name=)
+  end
+  
+  def test_user_should_respond_to_last_name
+    assert @user.respond_to?(:last_name)
+  end
+  
+  def test_user_should_respond_to_last_name=
+    assert @user.respond_to?(:last_name=)
+  end
+  
+  def test_user_should_respond_to_email
+    assert @user.respond_to?(:email)
   end
   
-  def test_truth
-    assert true
+  def test_user_should_respond_to_email=
+    assert @user.respond_to?(:email=)
   end
+  
+  def test_user_should_be_invalid_without_profile_attributes
+    @user.login = 'joe'
+    assert !@user.valid?
+  end
+  
+  def test_user_should_valid_with_profile_attributes
+    @user.login = 'joe'
+    @user.first_name = 'joe'
+    @user.last_name = 'bloggs'
+    @user.email = 'joe@bloggs.co.uk'
+    
+    assert @user.valid?
+  end
+  
 end</diff>
      <filename>test/test_classy-inheritance.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,2 +1,45 @@
+require 'rubygems'
+require 'activerecord'
+
 require 'test/unit'
 require File.dirname(__FILE__) + '/../lib/classy-inheritance'
+
+ActiveRecord::Base.establish_connection({
+      :adapter =&gt; &quot;sqlite3&quot;,
+      :dbfile =&gt; &quot;test/database.sqlite3&quot;
+})
+
+class SetupTestTables &lt; ActiveRecord::Migration
+  def self.up
+    create_table :profiles, :force =&gt; true do |t|
+      t.string :first_name
+      t.string :last_name
+      t.string :email
+
+      t.timestamps
+    end
+    
+    create_table :users, :force =&gt; true do |t|
+      t.string :login
+      t.integer :profile_id
+
+      t.timestamps
+    end
+  end
+  
+  def self.down
+    drop_table :users
+    drop_table :profiles
+  end
+end
+
+SetupTestTables.migrate(:up)
+
+class Profile &lt; ActiveRecord::Base
+  validates_presence_of :first_name, :last_name, :email
+end
+
+class User &lt; ActiveRecord::Base
+  validates_presence_of :login
+end
+</diff>
      <filename>test/test_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c9490fc33aaa9f9aba0c15f4f707c93ea2e8a05c</id>
    </parent>
  </parents>
  <author>
    <name>Geoff Garside</name>
    <email>geoff@geoffgarside.co.uk</email>
  </author>
  <url>http://github.com/stonean/classy-inheritance/commit/d8b0b78e397cc3d5ae91c3cc3e53ed754bc4db52</url>
  <id>d8b0b78e397cc3d5ae91c3cc3e53ed754bc4db52</id>
  <committed-date>2008-07-07T08:51:13-07:00</committed-date>
  <authored-date>2008-07-07T08:51:13-07:00</authored-date>
  <message>Add tests for classy inheritance</message>
  <tree>0a406c1920e3636693ec0ad082699004bf221946</tree>
  <committer>
    <name>Geoff Garside</name>
    <email>geoff@geoffgarside.co.uk</email>
  </committer>
</commit>
