<commit_before>require_relative 'spec_helper'

describe Workerholic::JobWrapper do
  it 'returns a hash with job meta info and job stats info' do
    job = Workerholic::JobWrapper.new(klass: SimpleJobTest, arguments: ['test job'])

    expected_result = {
      klass: SimpleJobTest,
      arguments: ['test job'],
      retry_count: 0,
      execute_at: nil,
      statistics: {
        enqueued_at: nil,
        errors: [],
        started_at: nil,
        completed_at: nil,
        failed_on: nil,
        elapsed_time: nil
      }<commit_msg>update job wrapper spec to include wrapper class<commit_after>require_relative 'spec_helper'

describe Workerholic::JobWrapper do
  it 'returns a hash with job meta info and job stats info' do
    job = Workerholic::JobWrapper.new(klass: SimpleJobTest, arguments: ['test job'])

    expected_result = {
      klass: SimpleJobTest,
      wrapper: nil,
      arguments: ['test job'],
      retry_count: 0,
      execute_at: nil,
      statistics: {
        enqueued_at: nil,
        errors: [],
        started_at: nil,
        completed_at: nil,
        failed_on: nil,
        elapsed_time: nil
      }
{'fraction_non_alphanumeric': 0.09225413402959094, 'fraction_numerical': 0.0017406440382941688, 'mean_word_length': 2.6858974358974357, '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': '7116245', 'n_tokens_mistral': 348, 'n_tokens_neox': 348, 'n_words': 101}