From e675cb84ef2b7fd183ce4a9fb56465bfd6e7a0ca Mon Sep 17 00:00:00 2001 From: Tanna McClure Date: Fri, 20 Jan 2023 14:32:41 -0800 Subject: [PATCH] added test for not implemented methods --- .../instrumentation/rails/notifications_subscriber.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/new_relic/agent/instrumentation/rails/notifications_subscriber.rb b/test/new_relic/agent/instrumentation/rails/notifications_subscriber.rb index 82c898fa99..093f5b781e 100644 --- a/test/new_relic/agent/instrumentation/rails/notifications_subscriber.rb +++ b/test/new_relic/agent/instrumentation/rails/notifications_subscriber.rb @@ -56,6 +56,16 @@ def test_finish_logs_notification_error end logger.verify end + + def test_not_implemented_methods + assert_raises NotImplementedError do + @subscriber.start_segment(nil, nil, nil) + end + + assert_raises NotImplementedError do + @subscriber.finish_segment(nil, nil, nil) + end + end end end end