Skip to content

Commit

Permalink
fix spec
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuap committed Oct 19, 2023
1 parent 12a2281 commit e80f054
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/unit/honeybadger_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@
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' }

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
Expand Down

0 comments on commit e80f054

Please sign in to comment.