Sha256: 6ec75f35ac634a27397fd725c0c8b4bd470e62aad1b01eb3a137dd1e615f705f
Contents?: true
Size: 836 Bytes
Versions: 3
Compression:
Stored size: 836 Bytes
Contents
# -*- coding: utf-8 -*- require_relative "../test_helper.rb" class RaygunTest < Raygun::UnitTest def test_raygun_is_not_configured_with_no_api_key Raygun.configuration.api_key = nil assert !Raygun.configured? end def test_should_report_logs_silence_reporting_when_debug_is_on logger = setup_logging Raygun.configuration.silence_reporting = true Raygun.send(:should_report?, Exception.new) assert logger.get.include?("silence_reporting"), "silence_reporting was not logged" end def test_should_report_logs_ignored_exceptions_when_debug_is_on logger = setup_logging Raygun.configuration.ignore = ["Exception"] Raygun.send(:should_report?, Exception.new) assert logger.get =~ /skipping reporting of.*Exception.*/, "ignored exception was not logged" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
raygun4ruby-3.2.6 | test/unit/raygun_test.rb |
raygun4ruby-3.2.5.pre | test/unit/raygun_test.rb |
raygun4ruby-3.2.4 | test/unit/raygun_test.rb |