<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -76,9 +76,19 @@ class ShouldRaiseTest &lt; Test::Unit::TestCase
   end
   
   context &quot;Using an unknown param_type&quot; do
-    # Testing should_raise with should_raise. Awesome.
-    should_raise(ArgumentError, :message =&gt; /:unknown_param_type/) do
+    begin
       should_raise(:unknown_param_type =&gt; 'foo') {}
+    rescue ArgumentError =&gt; ex
+      #All of this is happening at class definition time
+      @@invalid_should_raise_param_exception = ex
+    end
+
+    should &quot;raise an ArgumentError&quot; do
+      assert_kind_of ArgumentError, @@invalid_should_raise_param_exception
+    end
+
+    should &quot;give a message that includes the invalid param name&quot; do
+      assert_match /:unknown_param_type/, @@invalid_should_raise_param_exception.message
     end
   end
   </diff>
      <filename>test/unit/should_raise_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>91b85aab1b86ad4ca50ced775be32f6242b68984</id>
    </parent>
  </parents>
  <author>
    <name>Mathieu Martin</name>
    <email>webmat@gmail.com</email>
  </author>
  <url>http://github.com/seanhussey/woulda/commit/6578c8ceb2663f299ef099241e825b518762bdc3</url>
  <id>6578c8ceb2663f299ef099241e825b518762bdc3</id>
  <committed-date>2009-01-19T14:35:26-08:00</committed-date>
  <authored-date>2009-01-19T14:35:26-08:00</authored-date>
  <message>I had a feeling there was something fishy when testing should_raise with should_raise.

should_raise is only available at class level, not at instance level. The fact that I could test it with itself was a sign that should_raise was broken. Hence the previous fix, related to the instance variables.</message>
  <tree>f905458cb421c48c54bfcab2f923eabbf3bdda79</tree>
  <committer>
    <name>Mathieu Martin</name>
    <email>webmat@gmail.com</email>
  </committer>
</commit>
