<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -19,8 +19,8 @@ namespace :hoptoad do
       # This is to bypass any filters that may prevent access to the action.
       prepend_before_filter :test_hoptoad
       def test_hoptoad
-        puts 'Raising an error to simulate application failure.'
-        raise HoptoadTestingException, 'Testing hoptoad via &quot;rake hoptoad:test&quot;. If you can see this, it works.'
+        puts &quot;Raising '#{exception_class.name}' to simulate application failure.&quot;
+        raise exception_class.new, 'Testing hoptoad via &quot;rake hoptoad:test&quot;. If you can see this, it works.'
       end
 
       def rescue_action exception
@@ -33,6 +33,13 @@ namespace :hoptoad do
 
       # Ensure we actually have an action to go to.
       def verify; end
+
+      def exception_class
+        exception_name = ENV['EXCEPTION'] || &quot;HoptoadTestingException&quot;
+        Object.const_get(exception_name)
+      rescue
+        Object.const_set(exception_name, Class.new(Exception))
+      end
     end
 
     puts 'Processing request.'</diff>
      <filename>tasks/hoptoad_notifier_tasks.rake</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f2d4f03a891dcb8f7d848ad7b31fa4d8112ff15f</id>
    </parent>
  </parents>
  <author>
    <name>Jon Yurek</name>
    <email>jyurek@thoughtbot.com</email>
  </author>
  <url>http://github.com/lukeredpath/hoptoad_notifier/commit/f4dcf5ed5ad63a4372921342c451d843a8070044</url>
  <id>f4dcf5ed5ad63a4372921342c451d843a8070044</id>
  <committed-date>2008-08-05T14:32:21-07:00</committed-date>
  <authored-date>2008-08-05T14:32:21-07:00</authored-date>
  <message>Changed the rake task so it can report different errors for testing purposes.</message>
  <tree>a10c8ea59f6c0113e213402c641e4df7017a8152</tree>
  <committer>
    <name>Jon Yurek</name>
    <email>jyurek@thoughtbot.com</email>
  </committer>
</commit>
