Skip to content

Commit 0221290

Browse files
committed
remove a unnecessary test case
1 parent 799b887 commit 0221290

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

test/exception_notifier/slack_notifier_test.rb

-13
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,6 @@ class SlackNotifierTest < ActiveSupport::TestCase
4242
assert_equal slack_notifier.notifier.username, options[:username]
4343
end
4444

45-
test "should have the username 'ExceptionNotifierBot' when unspecified" do
46-
options = {
47-
webhook_url: "http://slack.webhook.url",
48-
}
49-
50-
Slack::Notifier.any_instance.expects(:ping).with(fake_notification, {})
51-
52-
slack_notifier = ExceptionNotifier::SlackNotifier.new(options)
53-
slack_notifier.call(fake_exception)
54-
55-
assert_equal slack_notifier.notifier.username, 'ExceptionNotifierBot'
56-
end
57-
5845
test "should pass the additional parameters to Slack::Notifier.ping" do
5946
options = {
6047
webhook_url: "http://slack.webhook.url",

0 commit comments

Comments
 (0)