<commit_before>require 'spec_helper'

describe MailDistributor do

  let(:test_message) { :'test message' }
  let(:sender)       { double :sender }
  let(:distributor) {
    MailDistributor.new sender: sender
  }

  before :each do
    sender.should_receive(:publish).with test_message
  end

  it 'publishes the mail' do
    distributor.distribute test_message
  end
end<commit_msg>distributor tweak<commit_after>require 'spec_helper'

describe MailDistributor do

  let(:test_message) { :'test message' }
  let(:sender)       { double :sender }
  let(:distributor) {
    MailDistributor.new sender: sender
  }

  it 'publishes the mail' do
    sender.should_receive(:publish).with test_message
    distributor.distribute test_message
  end
end
{'fraction_non_alphanumeric': 0.09261744966442953, 'fraction_numerical': 0.0, 'mean_word_length': 4.074829931972789, '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': '4253365', 'n_tokens_mistral': 247, 'n_tokens_neox': 227, 'n_words': 56}