Skip to content

Commit

Permalink
Merge pull request #65 from sinankeskin/master
Browse files Browse the repository at this point in the history
Fix capture_exception signature
  • Loading branch information
flyerhzm committed Feb 28, 2021
2 parents ed28676 + 89da7ae commit c03a491
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/uniform_notifier/sentry.rb
Expand Up @@ -16,7 +16,7 @@ def _out_of_channel_notify(data)
opt = UniformNotifier.sentry if UniformNotifier.sentry.is_a?(Hash)

exception = Exception.new(message)
Sentry.capture_exception(exception, opt)
Sentry.capture_exception(exception, **opt)
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/uniform_notifier/sentry_spec.rb
Expand Up @@ -12,7 +12,7 @@ class Sentry
end

it 'should notify sentry' do
expect(Sentry).to receive(:capture_exception).with(UniformNotifier::Exception.new('notify sentry'), {})
expect(Sentry).to receive(:capture_exception).with(UniformNotifier::Exception.new('notify sentry'))

UniformNotifier.sentry = true
UniformNotifier::SentryNotifier.out_of_channel_notify(title: 'notify sentry')
Expand Down

0 comments on commit c03a491

Please sign in to comment.