<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>lib/remarkable/active_record/macros/callbacks/callback_matcher.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,5 @@
 require 'remarkable/active_record/helpers'
-%w( database associations validations ).each do |folder|
+%w( database associations validations callbacks ).each do |folder|
   Dir[File.join(File.dirname(__FILE__), &quot;macros&quot;, folder, '*.rb')].each do |file|
     require file
   end</diff>
      <filename>lib/remarkable/active_record/active_record.rb</filename>
    </modified>
    <modified>
      <diff>@@ -40,6 +40,11 @@ describe User do
     it { should_not have_named_scope(&quot;recent(#{@count})&quot;, :limit =&gt; 1) }
   end
   
+  it { should have_after_create_callback(:send_welcome_email) }
+  it { should_not have_after_save_callback(:send_welcome_email) }
+  it { should_not have_after_destroy_callback(:goodbye_jerk) }
+  it { should have_before_validation_on_update_callback(:some_weird_callback) }
+  
   it { should_not allow_values_for(:email, &quot;blah&quot;, &quot;b lah&quot;) }
   it { should allow_values_for(:email, &quot;a@b.com&quot;, &quot;asdf@asdf.com&quot;) }
   it { should_not allow_values_for(:email, &quot;a@b.com&quot;, &quot;asdf@asdf.com&quot;).allow_nil }
@@ -152,6 +157,11 @@ describe User do
     end
     # should_have_named_scope &quot;recent(@count)&quot;, :limit =&gt; 2
   end
+
+  should_have_after_create_callback(:send_welcome_email)
+  should_not_have_after_save_callback(:send_welcome_email)
+  should_not_have_after_destroy_callback(:goodbye_jerk)
+  should_have_before_validation_on_update_callback(:some_weird_callback)
   
   should_not_allow_values_for :email, &quot;blah&quot;, &quot;b lah&quot;
   should_allow_values_for :email, &quot;a@b.com&quot;, &quot;asdf@asdf.com&quot;</diff>
      <filename>spec/models/user_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -25,4 +25,10 @@ class User &lt; ActiveRecord::Base
   validates_uniqueness_of :email, :scope =&gt; :name
   validates_length_of :ssn, :is =&gt; 9, :message =&gt; &quot;Social Security Number is not the right length&quot;
   validates_numericality_of :ssn
+  
+  after_create :send_welcome_email
+  before_validation_on_update :some_weird_callback
+  
+  def send_welcome_email; end
+  def some_weird_callback; end
 end</diff>
      <filename>spec/rails_root/app/models/user.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ef3863ed17fd1acae95cec0f83d22906e0c28648</id>
    </parent>
  </parents>
  <author>
    <name>Elijah Miller</name>
    <email>elijah.miller@gmail.com</email>
  </author>
  <url>http://github.com/carlosbrando/remarkable/commit/6dc34f6042271a4f66b86d0b387652592abe0e7d</url>
  <id>6dc34f6042271a4f66b86d0b387652592abe0e7d</id>
  <committed-date>2009-01-15T11:41:50-08:00</committed-date>
  <authored-date>2009-01-15T11:23:17-08:00</authored-date>
  <message>Adding should have_before_save_callback(method) and friends.</message>
  <tree>5ff87599516285ec36055fc1c1e6fbad014b0bf9</tree>
  <committer>
    <name>Carlos Brando</name>
    <email>eduardobrando@gmail.com</email>
  </committer>
</commit>
