spec/standalone/ucblit/logging/loggers_spec.rb in berkeley_library-logging-0.2.4 vs spec/standalone/ucblit/logging/loggers_spec.rb in berkeley_library-logging-0.2.5
- old
+ new
@@ -130,9 +130,12 @@
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
+
+ expect(out.string).to include(msg_outer)
+ expect(out.string).to include(msg_inner)
end
# rubocop:enable Naming/RescuedExceptionsVariableName
describe :default_logger do
it 'returns a readable $stdout logger' do