<commit_before>require "spec_helper"

describe "Threasy::Work" do
  before :each do
    @work = Threasy::Work.instance
  end

  describe "#enqueue" do
    it "should have a method for enqueing" do
      expect(@work.respond_to?(:enqueue)).to be_true
    end

    it "should allow a job object to be enqueued and worked" do
      job = double("job")
      expect(job).to receive(:perform).once
      @work.enqueue job
      sleep 0.1<commit_msg>Fix silly spec failure<commit_after>require "spec_helper"

describe "Threasy::Work" do
  before :each do
    @work = Threasy::Work.instance
  end

  describe "#enqueue" do
    it "should have a method for enqueing" do
      expect(@work.respond_to?(:enqueue)).to eq(true)
    end

    it "should allow a job object to be enqueued and worked" do
      job = double("job")
      expect(job).to receive(:perform).once
      @work.enqueue job
      sleep 0.1
{'fraction_non_alphanumeric': 0.10467706013363029, 'fraction_numerical': 0.004454342984409799, 'mean_word_length': 3.0863636363636364, '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': '1328447', 'n_tokens_mistral': 295, 'n_tokens_neox': 286, 'n_words': 92}