<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -72,9 +72,9 @@ describe EmailSpec::Matchers do
     end
 
     it &quot;should give correct failure message when the email is not set to deliver to the specified address&quot; do
-      lambda {
-        mock_email(:inspect =&gt; 'email', :to =&gt; 'freddy_noe@yahoo.com').should deliver_to(&quot;jimmy_bean@yahoo.com&quot;)
-      }.should raise_error(Spec::Expectations::ExpectationNotMetError, %{expected email to deliver to [&quot;jimmy_bean@yahoo.com&quot;], but it delivered to [&quot;freddy_noe@yahoo.com&quot;]})
+      matcher = deliver_to(&quot;jimmy_bean@yahoo.com&quot;)
+      matcher.matches?(mock_email(:inspect =&gt; 'email', :to =&gt; 'freddy_noe@yahoo.com'))
+      matcher.failure_message.should == %{expected email to deliver to [&quot;jimmy_bean@yahoo.com&quot;], but it delivered to [&quot;freddy_noe@yahoo.com&quot;]}
     end
 
   end
@@ -91,9 +91,9 @@ describe EmailSpec::Matchers do
     end
 
     it &quot;should give correct failure message when the email is not set to deliver from the specified address&quot; do
-      lambda {
-        mock_email(:inspect =&gt; 'email', :from =&gt; ['freddy_noe@yahoo.com']).should deliver_from(&quot;jimmy_bean@yahoo.com&quot;)
-      }.should raise_error(Spec::Expectations::ExpectationNotMetError, %{expected email to deliver from &quot;jimmy_bean@yahoo.com&quot;, but it delivered from &quot;freddy_noe@yahoo.com&quot;})
+      matcher = deliver_from(&quot;jimmy_bean@yahoo.com&quot;)
+      matcher.matches?(mock_email(:inspect =&gt; 'email', :from =&gt; ['freddy_noe@yahoo.com']))
+      matcher.failure_message.should == %{expected email to deliver from &quot;jimmy_bean@yahoo.com&quot;, but it delivered from &quot;freddy_noe@yahoo.com&quot;}
     end
 
   end</diff>
      <filename>spec/email_spec/matchers_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6df27b1b460d9a5dc317f8b011dec64fd37951b4</id>
    </parent>
  </parents>
  <author>
    <name>Ben Mabey</name>
    <email>ben@benmabey.com</email>
  </author>
  <url>http://github.com/bmabey/email-spec/commit/91706c472c03e58373b4b90c476bd5088cc2da04</url>
  <id>91706c472c03e58373b4b90c476bd5088cc2da04</id>
  <committed-date>2009-09-26T16:46:25-07:00</committed-date>
  <authored-date>2009-09-26T16:46:25-07:00</authored-date>
  <message>don't use lambda matchers to check matcher's failure message</message>
  <tree>7f604ff7bd6041515e575926f98cc0d41e9d18cd</tree>
  <committer>
    <name>Ben Mabey</name>
    <email>ben@benmabey.com</email>
  </committer>
</commit>
