<commit_before>require "spec_helper"

describe Bunny::Queue, "#delete" do
  let(:connection) do
    c = Bunny.new
    c.start
    c
  end


  context "with a name of an existing queue" do
    it "deletes that queue" do
      ch = connection.create_channel
      q  = ch.queue("")

      q.delete
      expect {
        q.delete
      }.to raise_error(Bunny::NotFound)

      ch.close
    end
  end


  context "with a name of an existing queue" do
    it "raises an exception" do
      ch = connection.create_channel

      expect {
        ch.queue_delete("sdkhflsdjflskdjflsd#{rand}")
      }.to raise_error(Bunny::NotFound)

      ch.close
    end
  end
end<commit_msg>Correct this test<commit_after>require "spec_helper"

describe Bunny::Queue, "#delete" do
  let(:connection) do
    c = Bunny.new
    c.start
    c
  end


  context "with a name of an existing queue" do
    it "deletes that queue" do
      ch = connection.create_channel
      q  = ch.queue("")

      q.delete
      expect {
        q.delete
      }.to raise_error(Bunny::NotFound)
    end
  end


  context "with a name of an existing queue" do
    it "raises an exception" do
      ch = connection.create_channel

      expect {
        ch.queue_delete("sdkhflsdjflskdjflsd#{rand}")
      }.to raise_error(Bunny::NotFound)
    end
  end
end
{'fraction_non_alphanumeric': 0.0911854103343465, 'fraction_numerical': 0.0, 'mean_word_length': 2.3173803526448364, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7055340', 'n_tokens_mistral': 452, 'n_tokens_neox': 426, 'n_words': 125}