test/test_backtrace.rb in backtrace-0.3.0 vs test/test_backtrace.rb in backtrace-0.4.0

- old
+ new

@@ -1,10 +1,10 @@ # frozen_string_literal: true # (The MIT License) # -# Copyright (c) 2018 Yegor Bugayenko +# Copyright (c) 2018-2023 Yegor Bugayenko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the 'Software'), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell @@ -25,11 +25,11 @@ require 'minitest/autorun' require_relative '../lib/backtrace' # Backtract test. # Author:: Yegor Bugayenko (yegor256@gmail.com) -# Copyright:: Copyright (c) 2018 Yegor Bugayenko +# Copyright:: Copyright (c) 2018-2023 Yegor Bugayenko # License:: MIT class BacktraceTest < Minitest::Test def test_prints_exception raise 'Just a test' rescue StandardError => e @@ -58,9 +58,10 @@ end end class FakeLog attr_reader :sent + def error(msg) @sent = msg end end end