Sha256: 8a7d309a3a69d22f6f144594fdbc8bdcbfd353854e6daa0c4979f6d1e5bf7379

Contents?: true

Size: 489 Bytes

Versions: 3

Compression:

Stored size: 489 Bytes

Contents

require_relative "../test_helper.rb"

class ClientTest < Raygun::IntegrationTest

  class InnocentTestException < StandardError
    def message
      "I am nothing but a test exception"
    end
  end

  def test_sending_a_sample_exception
    begin
      raise InnocentTestException.new
    rescue InnocentTestException => e
      response = Raygun.track_exception(e)
      assert_equal 202, response.code, "Raygun Request Failed: #{response.inspect}"
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
raygun4ruby-3.2.6 test/integration/client_test.rb
raygun4ruby-3.2.5.pre test/integration/client_test.rb
raygun4ruby-3.2.4 test/integration/client_test.rb