<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -116,7 +116,7 @@ module CapGun
       end
       
       def deployed_to(capistrano)
-        returning(s = &quot;deployed&quot;) { s += &quot; to #{capistrano[:rails_env]}&quot; if capistrano[:rails_env] }
+        returning(deploy_msg = &quot;deployed&quot;) { |msg| msg &lt;&lt; &quot; to #{capistrano[:rails_env]}&quot; if capistrano[:rails_env] }
       end
       
       # Create the body of the message using a bunch of values from Capistrano</diff>
      <filename>lib/cap_gun.rb</filename>
    </modified>
    <modified>
      <diff>@@ -115,14 +115,15 @@ describe &quot;CapGun&quot; do
   describe &quot;creating body&quot; do
     it &quot;has a friendly summary line&quot; do
       CapGun::Mailer.any_instance.stubs(:current_user).returns(&quot;jdoe&quot;)
-      capistrano = { :application =&gt; &quot;my app&quot;, :rails_env =&gt; &quot;staging&quot;, :current_release =&gt; &quot;/data/foo/releases/20080227120000&quot;, :cap_gun_email_envelope =&gt; { :from =&gt; &quot;booyakka!@example.com&quot;, :recipients =&gt; [&quot;foo@here.com&quot;, &quot;bar@here.com&quot;] } }
+      capistrano = { :application =&gt; &quot;my app&quot;, :rails_env =&gt; &quot;staging&quot;, :current_release =&gt; &quot;/data/foo/releases/20080227120000&quot;,  :cap_gun_email_envelope =&gt; {} }
       mail = CapGun::Mailer.create_deployment_notification capistrano
+      mail.subject.should == &quot;[DEPLOY] my app deployed to staging&quot; 
       mail.body.split(&quot;\n&quot;).first.should == &quot;my app was deployed to staging by jdoe at February 27th, 2008 8:00 AM EDT.&quot;
     end
 
-    it &quot;does not include rails env in summary if not defined&quot; do
+    it &quot;does not include rails env if not defined&quot; do
       CapGun::Mailer.any_instance.stubs(:current_user).returns(&quot;jdoe&quot;)
-      capistrano = { :application =&gt; &quot;my app&quot;, :current_release =&gt; &quot;/data/foo/releases/20080227120000&quot;, :cap_gun_email_envelope =&gt; { :from =&gt; &quot;booyakka!@example.com&quot;, :recipients =&gt; [&quot;foo@here.com&quot;, &quot;bar@here.com&quot;] } }
+      capistrano = { :application =&gt; &quot;my app&quot;, :current_release =&gt; &quot;/data/foo/releases/20080227120000&quot;, :cap_gun_email_envelope =&gt; {}}
       mail = CapGun::Mailer.create_deployment_notification capistrano
       mail.subject.should == &quot;[DEPLOY] my app deployed&quot; 
       mail.body.split(&quot;\n&quot;).first.should == &quot;my app was deployed by jdoe at February 27th, 2008 8:00 AM EDT.&quot;</diff>
      <filename>spec/cap_gun_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>783cb94b0e632cdc10d2fd6e6966b30aaa3b18a4</id>
    </parent>
  </parents>
  <author>
    <name>Rob Sanheim</name>
    <email>rsanheim@gmail.com</email>
  </author>
  <url>http://github.com/relevance/cap_gun/commit/cdda99db3002b0c743c783cfb0a2e3c14790de18</url>
  <id>cdda99db3002b0c743c783cfb0a2e3c14790de18</id>
  <committed-date>2008-07-17T00:50:05-07:00</committed-date>
  <authored-date>2008-07-17T00:50:05-07:00</authored-date>
  <message>fix bug with subject line and showing the rails env its going to</message>
  <tree>43fa84d88ff4ffe31d409163e216068ad463f3dd</tree>
  <committer>
    <name>Rob Sanheim</name>
    <email>rsanheim@gmail.com</email>
  </committer>
</commit>
