<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -50,6 +50,18 @@ describe AASM::SupportingClasses::State do
 
     state.call_action(:entering, record)
   end
+  
+  it 'should send a message to the record for each action' do
+    state = new_state(:entering =&gt; [:a, :b, &quot;c&quot;, lambda {|r| r.foobar }])
+    
+    record = mock('record')
+    record.should_receive(:a)
+    record.should_receive(:b)
+    record.should_receive(:c)
+    record.should_receive(:foobar)
+    
+    state.call_action(:entering, record)
+  end
 
   it 'should call a proc, passing in the record for an action if the action is present' do
     state = new_state(:entering =&gt; Proc.new {|r| r.foobar})</diff>
      <filename>spec/unit/state_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4eea7624b8eec920a631de4d1d6a9e2a9e909b9d</id>
    </parent>
    <parent>
      <id>404a9d31036be314490daecd857395d9ba40c415</id>
    </parent>
  </parents>
  <author>
    <name>Travis Tilley</name>
    <email>ttilley@gmail.com</email>
  </author>
  <url>http://github.com/rubyist/aasm/commit/80d7896eced7981acae301a8ed8f93cb36932804</url>
  <id>80d7896eced7981acae301a8ed8f93cb36932804</id>
  <committed-date>2009-10-14T20:26:24-07:00</committed-date>
  <authored-date>2009-10-14T20:26:24-07:00</authored-date>
  <message>Merge remote branch 'gpetrica/master'</message>
  <tree>84ab99eb802029b4a3d3fdbf578fa4aa54071111</tree>
  <committer>
    <name>Travis Tilley</name>
    <email>ttilley@gmail.com</email>
  </committer>
</commit>
