Sha256: 4ec49c4ae102c6205e4b6d0855ec979a1e4414181e1fc7e7ee0f12f3b2293ce6
Contents?: true
Size: 605 Bytes
Versions: 11
Compression:
Stored size: 605 Bytes
Contents
require 'helper' require 'logger' class BugsnagTestException < RuntimeError; end class TestBugsnag < Test::Unit::TestCase should "send a normal exception" do Bugsnag.configure do |config| config.api_key = "2dd3f9aaef927b88be4e3c713b663354" config.release_stage = "production" config.project_root = File.dirname(__FILE__) config.logger = Logger.new(STDOUT) end begin raise BugsnagTestException.new("Exception test from bugsnag gem") rescue Exception => e response = Bugsnag.notify(e) flunk "oh my" if response.code != 200 end end end
Version data entries
11 entries across 11 versions & 1 rubygems