Module: Raygun::Testable

Included in:
Raygun
Defined in:
lib/raygun/testable.rb

Instance Method Summary collapse

Instance Method Details

#track_test_exceptionObject



7
8
9
10
11
12
13
14
15
16
# File 'lib/raygun/testable.rb', line 7

def track_test_exception
  Raygun.configuration.silence_reporting = false
  raise ItWorksException.new("Woohoo! Your Raygun<->Ruby connection is set up correctly")
rescue ItWorksException => e
  if Raygun.track_exception(e).success?
    puts "Success! Now go check your Raygun.io Dashboard"
  else
    puts "Oh-oh, something went wrong - double check your API key"
  end
end