<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>.gitignore</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -24,17 +24,17 @@ module AfterCommit
             
             def after_commit_on_create(*callbacks, &amp;block)
               callbacks &lt;&lt; block if block_given?
-              write_inheritable_array(:after_commit_on_create_callback, callbacks)
+              write_inheritable_array(:after_commit_on_create, callbacks)
             end
             
             def after_commit_on_update(*callbacks, &amp;block)
               callbacks &lt;&lt; block if block_given?
-              write_inheritable_array(:after_commit_on_update_callback, callbacks)
+              write_inheritable_array(:after_commit_on_update, callbacks)
             end
             
             def after_commit_on_destroy(*callbacks, &amp;block)
               callbacks &lt;&lt; block if block_given?
-              write_inheritable_array(:after_commit_on_destroy_callback, callbacks)
+              write_inheritable_array(:after_commit_on_destroy, callbacks)
             end
           end
         end</diff>
      <filename>lib/after_commit/active_record.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,8 +1,53 @@
+$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../lib')
 require 'test/unit'
+require 'rubygems'
+require 'activerecord'
+require 'after_commit'
+require 'after_commit/active_record'
+require 'after_commit/connection_adapters'
+
+ActiveRecord::Base.establish_connection({&quot;adapter&quot; =&gt; &quot;sqlite3&quot;, &quot;database&quot; =&gt; 'test.sqlite3'})
+begin
+  ActiveRecord::Base.connection.execute(&quot;drop table mock_records&quot;);
+rescue
+end
+ActiveRecord::Base.connection.execute(&quot;create table mock_records(id int)&quot;);
+
+require File.dirname(__FILE__) + '/../init.rb'
+
+class MockRecord &lt; ActiveRecord::Base
+  attr_accessor :after_commit_on_create_called
+  attr_accessor :after_commit_on_update_called
+  attr_accessor :after_commit_on_destroy_called
+
+  after_commit_on_create :do_create
+  def do_create
+    self.after_commit_on_create_called = true
+  end
+
+  after_commit_on_update :do_update
+  def do_update
+    self.after_commit_on_update_called = true
+  end
+
+  after_commit_on_create :do_destroy
+  def do_destroy
+    self.after_commit_on_destroy_called = true
+  end
+end
 
 class AfterCommitTest &lt; Test::Unit::TestCase
-  # Replace this with your real tests.
-  def test_this_plugin
-    flunk
+  def test_after_commit_on_create_is_called
+    assert_equal true, MockRecord.create!.after_commit_on_create_called
+  end
+
+  def test_after_commit_on_update_is_called
+    record = MockRecord.create!
+    record.save
+    assert_equal true, record.after_commit_on_update_called
+  end
+
+  def test_after_commit_on_destroy_is_called
+    assert_equal true, MockRecord.create!.destroy.after_commit_on_destroy_called
   end
 end</diff>
      <filename>test/after_commit_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>34832ee3359516042d302961c8e9157d0cbec512</id>
    </parent>
  </parents>
  <author>
    <name>Xavier Shay</name>
    <email>xavier@rhnh.net</email>
  </author>
  <url>http://github.com/trotter/after_commit/commit/3c562d72e58dfe88a6806093aec69e8cc9e01fc1</url>
  <id>3c562d72e58dfe88a6806093aec69e8cc9e01fc1</id>
  <committed-date>2008-06-24T20:01:20-07:00</committed-date>
  <authored-date>2008-06-24T20:01:20-07:00</authored-date>
  <message>Fix after_commit_on_* callbacks</message>
  <tree>f9defea2254fd58e363796b0a9e9c4b55d9a677c</tree>
  <committer>
    <name>Xavier Shay</name>
    <email>xavier@rhnh.net</email>
  </committer>
</commit>
