Class: Rnotifier::ConfigTest
- Inherits:
-
Object
- Object
- Rnotifier::ConfigTest
- Defined in:
- lib/rnotifier/config_test.rb
Defined Under Namespace
Classes: TestException
Class Method Summary collapse
Class Method Details
.test ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/rnotifier/config_test.rb', line 6 def self.test begin raise TestException.new('Test exception') rescue Exception => e if status = Rnotifier.exception(e, {}) puts "Test Exception sent. Login to www.rnotifier.com and checkout." else puts "Problem sending exception to www.rnotifier.com. Check your API key or config." end status end end |