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

Version Path
bugsnag-1.2.1 test/test_bugsnag.rb
bugsnag-1.2.0 test/test_bugsnag.rb
bugsnag-1.2.0.beta test/test_bugsnag.rb
bugsnag-1.1.5 test/test_bugsnag.rb
bugsnag-1.1.4 test/test_bugsnag.rb
bugsnag-1.1.3 test/test_bugsnag.rb
bugsnag-1.1.2 test/test_bugsnag.rb
bugsnag-1.1.1 test/test_bugsnag.rb
bugsnag-1.1.0 test/test_bugsnag.rb
bugsnag-1.0.10 test/test_bugsnag.rb
bugsnag-1.0.9 test/test_bugsnag.rb