<commit_before>require 'spec_helper'
require 'cache/base'
require 'cache/exts/decorate_object'

describe Cache::Base do

  class TestCache < Cache::Base;
    include Cache::Exts::DecorateObject

    def cache_store
      @cache_store ||= Object.new
    end

    def cache_store_call_options
      {some: :option}
    end
  end

  subject { TestCache.new }

  describe "#update" do
<commit_msg>Extract class with specific name<commit_after>require 'spec_helper'
require 'cache/base'
require 'cache/exts/decorate_object'

class TestDecorateObjectCache < Cache::Base
  include Cache::Exts::DecorateObject

  def cache_store
    @cache_store ||= Object.new
  end

  def cache_store_call_options
    {some: :option}
  end
end

describe Cache::Base do

  subject { TestDecorateObjectCache.new }

  describe "#update" do

{'fraction_non_alphanumeric': 0.08968058968058969, 'fraction_numerical': 0.0, 'mean_word_length': 4.191082802547771, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1666123', 'n_tokens_mistral': 270, 'n_tokens_neox': 255, 'n_words': 64}