<commit_before>require 'spec_helper'
require 'support/active_record'

describe Travis::Notifications::Handler::Worker::Payload do
  it 'should be specified'
end<commit_msg>add minimal worker payload specs<commit_after>require 'spec_helper'
require 'support/active_record'

describe Travis::Notifications::Handler::Worker::Payload do
  Payload = Travis::Notifications::Handler::Worker::Payload

  let(:configure) { Factory(:configure) }
  let(:test)      { Factory(:test) }

  describe 'for returns the payload required for worker jobs' do
    it 'Job::Configure' do
      Payload.for(configure).keys.should == [:build, :repository, :queue]
    end

    it 'Job::Test' do
      Payload.for(test).keys.should == [:build, :repository, :config, :queue]
    end
  end
end
{'fraction_non_alphanumeric': 0.12924281984334204, 'fraction_numerical': 0.0, 'mean_word_length': 5.286885245901639, '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': '6436677', 'n_tokens_mistral': 231, 'n_tokens_neox': 218, 'n_words': 57}