require 'discordrb'

describe Discordrb::Commands do
  describe Discordrb::Commands::CommandBot do
    it 'should allow no defined commands' do
      bot = Discordrb::Commands::CommandBot.new token: '', help_available: false

      event = spy

      bot.execute_command(:test, event, [])

      # We don't want anything sent to the channel
      expect(spy).to_not have_received :respond
    end
  end
end

require 'discordrb'

describe Discordrb::Commands do
  describe Discordrb::Commands::CommandBot do
    context 'no defined commands' do
      bot = Discordrb::Commands::CommandBot.new token: '', help_available: false

      it 'should successfully trigger the command' do
        event = double

        bot.execute_command(:test, event, [])
      end

      it 'should not send anything to the channel' do
        event = spy

        bot.execute_command(:test, event, [])

        expect(spy).to_not have_received :respond
      end
    end
  end
end

Make the "no defined commands" a context with two tests
Make the "no defined commands" a context with two tests
