<commit_before>require 'spec_helper'

describe Delayed::Workless::Scaler::HerokuCedar do
  context 'with no workers' do
    before(:each) do
      Delayed::Workless::Scaler::HerokuCedar.should_receive(:workers).and_return(0)
    end
    context "with jobs" do
      context "run_at in the past" do
        it 'should set workers to 1 for 1 job' do
          if_there_are_jobs       1
          should_scale_workers_to 1<commit_msg>Fix run_at spec<commit_after>require 'spec_helper'

describe Delayed::Workless::Scaler::HerokuCedar do
  context 'with no workers' do
    before(:each) do
      Delayed::Workless::Scaler::HerokuCedar.stub(:workers).and_return(0)
    end
    context "with jobs" do
      context "run_at in the past" do
        it 'should set workers to 1 for 1 job' do
          if_there_are_jobs       1
          should_scale_workers_to 1
{'fraction_non_alphanumeric': 0.08196721311475409, 'fraction_numerical': 0.0117096018735363, 'mean_word_length': 3.2118226600985222, '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': '3294855', 'n_tokens_mistral': 288, 'n_tokens_neox': 269, 'n_words': 77}