# frozen_string_literal: true require "rails_helper" RSpec.describe Slack::SocketMode::Handler do describe ".process" do context "when the payload type is events_api" do let(:message) { { type: "events_api", envelope_id: generate(:envelope_id) } } it "handles events_api messages" do # Test whatever you need to test here # described_class.process(message) end end context "when the payload type is interactive" do let(:message) { { type: "interactive", envelope_id: generate(:envelope_id) } } it "handles interactive messages" do # Test whatever you need to test here # described_class.process(message) end end context "when the payload type is disconnect" do let(:message) { { type: "disconnect", envelope_id: generate(:envelope_id) } } it "handles disconnect messages" do # Test whatever you need to test here # described_class.process(message) end end end end