<commit_before>RSpec.describe MarchHare::Exchange do
  let(:connection) { MarchHare.connect }

  after :each do
    connection.close
  end

  it "should bind two exchanges using exchange instances" do
    ch          = connection.create_channel
    source      = ch.fanout("hot_bunnies.spec.exchanges.source", :auto_delete => true)
    destination = ch.fanout("hot_bunnies.spec.exchanges.destination", :auto_delete => true)

    queue = ch.queue("", :exclusive => true)
    queue.bind(destination)

    destination.bind(source)
    source.publish("")
    expect(queue.get).not_to be_nil
  end

  it "should bind two exchanges using exchange name" do
    ch          = connection.create_channel
    source      = ch.fanout("hot_bunnies.spec.exchanges.source", :auto_delete => true)
    destination = ch.fanout("hot_bunnies.spec.exchanges.destination", :auto_delete => true)

    queue = ch.queue("", :exclusive => true)
    queue.bind(destination)

    destination.bind(source.name)
    source.publish("")
    expect(queue.get).not_to be_nil
  end
end<commit_msg>Use march_hare here<commit_after>RSpec.describe MarchHare::Exchange do
  let(:connection) { MarchHare.connect }

  after :each do
    connection.close
  end

  it "should bind two exchanges using exchange instances" do
    ch          = connection.create_channel
    source      = ch.fanout("march_hare.spec.exchanges.source", :auto_delete => true)
    destination = ch.fanout("march_hare.spec.exchanges.destination", :auto_delete => true)

    queue = ch.queue("", :exclusive => true)
    queue.bind(destination)

    destination.bind(source)
    source.publish("")
    expect(queue.get).not_to be_nil
  end

  it "should bind two exchanges using exchange name" do
    ch          = connection.create_channel
    source      = ch.fanout("march_hare.spec.exchanges.source", :auto_delete => true)
    destination = ch.fanout("march_hare.spec.exchanges.destination", :auto_delete => true)

    queue = ch.queue("", :exclusive => true)
    queue.bind(destination)

    destination.bind(source.name)
    source.publish("")
    expect(queue.get).not_to be_nil
  end
end
{'fraction_non_alphanumeric': 0.11759172154280338, 'fraction_numerical': 0.0, 'mean_word_length': 3.496828752642706, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '4040050', 'n_tokens_mistral': 674, 'n_tokens_neox': 651, 'n_words': 139}