test/helper.rb in riot_notifier-0.0.6 vs test/helper.rb in riot_notifier-0.0.7
- old
+ new
@@ -1,5 +1,18 @@
+require 'rubygems'
require 'riot'
require 'riot_notifier'
-Riot.reporter = RiotNotifier::Libnotify
+Riot.reporter = RiotNotifier
+
+module Riot
+ class Situation
+ # Create backtrace for this exception.
+ def bt!(error)
+ return error if error.backtrace
+ raise error
+ rescue error.class => e
+ e
+ end
+ end
+end