Wednesday, July 15, 2026 4:01:04 AM
> id_spec.rb
# frozen_string_literal: true

describe ESM::Command::Community::Id, category: "command" do
  include_context "command"
  include_examples "validate_command", requires_registration: false

  describe "#execute" do
    it "returns the community's ID" do
      execute!

      response = ESM.discord_bot.test_outbox.first.content
      expect(response).not_to be_nil
      expect(response.description).to match(/community id is/i)
      expect(response.fields.size).to eq(1)
      expect(response.fields.first.name).to eq("Want to list all registered servers for this community?")
      expect(response.fields.first.value).to match(/community servers for:/i)
    end
  end
end
All opinions represented herein are my own
- © 2024 - 2026 itsthedevman
- build 43aa0d7