spec/standalone/ucblit/logging/loggers_spec.rb in berkeley_library-logging-0.2.3 vs spec/standalone/ucblit/logging/loggers_spec.rb in berkeley_library-logging-0.2.4

- old
+ new

@@ -125,10 +125,14 @@ rescue TestError => ex_outer ex_inner.cause = ex_outer end end - expect { Loggers.new_json_logger(out).error(ex_outer) }.not_to raise_error(SystemStackError) + begin + Loggers.new_json_logger(out).error(ex_outer) + rescue SystemStackError => e + RSpec::Expectations.fail_with("Expected no SystemStackError, but got #{e}: #{e.backtrace[0]}") + end end # rubocop:enable Naming/RescuedExceptionsVariableName describe :default_logger do it 'returns a readable $stdout logger' do