<commit_before>require 'spec_helper'

describe "remote on-the-fly urls" do
  
  THUMBS = {}
  
  before(:each) do
    @app = Dragonfly[:images].configure do |c|
      c.generator.add :test do
        "TEST"
      end
      c.server.before_serve do |job, env|
        uid = job.store(:path => 'yay.txt')
        THUMBS[job.serialize] = uid
      end
      c.define_url do |app, job, opts|
        uid = THUMBS[job.serialize]<commit_msg>got rid of annoying warnings by using a test_app in remote on-the-fly url spec<commit_after>require 'spec_helper'

describe "remote on-the-fly urls" do
  
  THUMBS = {}
  
  before(:each) do
    @app = test_app.configure do |c|
      c.generator.add :test do
        "TEST"
      end
      c.server.before_serve do |job, env|
        uid = job.store(:path => 'yay.txt')
        THUMBS[job.serialize] = uid
      end
      c.define_url do |app, job, opts|
        uid = THUMBS[job.serialize]
{'fraction_non_alphanumeric': 0.12, 'fraction_numerical': 0.0, 'mean_word_length': 2.3309352517985613, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6528454', 'n_tokens_mistral': 324, 'n_tokens_neox': 321, 'n_words': 84}