diff --git a/app/jobs/slack_bot_ping_job.rb b/app/jobs/slack_bot_ping_job.rb deleted file mode 100644 index 242bbebcf..000000000 --- a/app/jobs/slack_bot_ping_job.rb +++ /dev/null @@ -1,7 +0,0 @@ -class SlackBotPingJob < ApplicationJob - queue_as :slack_bot_ping - - def perform(message:, channel:, username:, icon_emoji:) - SlackBot.ping(message, channel: channel, username: username, icon_emoji: icon_emoji) - end -end diff --git a/spec/jobs/slack_bot_ping_job_spec.rb b/spec/jobs/slack_bot_ping_job_spec.rb deleted file mode 100644 index 2cf1f4358..000000000 --- a/spec/jobs/slack_bot_ping_job_spec.rb +++ /dev/null @@ -1,19 +0,0 @@ -require "rails_helper" - -RSpec.describe SlackBotPingJob, type: :job do - describe "#perform_now" do - before do - allow(SlackBot).to receive(:ping) - end - - it "calls the SlackBot" do - described_class.perform_now(message: "hello", - channel: "#help", - username: "sloan_watch_bot", - icon_emoji: ":sloan:") - expect(SlackBot).to have_received(:ping).with("hello", channel: "#help", - username: "sloan_watch_bot", - icon_emoji: ":sloan:") - end - end -end