<commit_before>require 'spec_helper'

describe Book do

  context "upon creation" do
    it "enqueues a book for processing" do
      Resque.should_receive(:enqueue)<commit_msg>Ensure pristine state before Book tests<commit_after>require 'spec_helper'

describe Book do
  context "upon creation" do
    let(:args) { ["radar", "rails3book_test"] }
    let(:git) { Git.new(*args) }

    before do
      # Ensure a pristine state
      FileUtils.rm_r(git.path) if File.exist?(git.path)
      git.update!
    end

    it "enqueues a book for processing" do
      Resque.should_receive(:enqueue)
{'fraction_non_alphanumeric': 0.1, 'fraction_numerical': 0.001694915254237288, 'mean_word_length': 3.546153846153846, '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': '2193785', 'n_tokens_mistral': 200, 'n_tokens_neox': 187, 'n_words': 54}