From e80f054610342a389a0b32470460119570156c66 Mon Sep 17 00:00:00 2001 From: Joshua Wood Date: Thu, 19 Oct 2023 15:37:46 -0700 Subject: [PATCH] fix spec --- spec/unit/honeybadger_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/unit/honeybadger_spec.rb b/spec/unit/honeybadger_spec.rb index 996103f6..96f462f7 100644 --- a/spec/unit/honeybadger_spec.rb +++ b/spec/unit/honeybadger_spec.rb @@ -102,7 +102,7 @@ Honeybadger.notify(error_message: 'uh oh') end - it "creates and sends a notice for an exception and hash" do + it "creates and sends a notice for an exception with additional arguments" do exception = build_exception notice = stub_notice!(config) notice_args = { error_message: 'uh oh' } @@ -110,7 +110,7 @@ expect(Honeybadger::Notice).to receive(:new).with(config, hash_including(notice_args.merge(exception: exception))).and_return(notice) expect(worker).to receive(:push).with(notice) - Honeybadger.notify(exception, notice_args) + Honeybadger.notify(exception, **notice_args) end it "sends a notice with a string" do