<commit_before>require 'spec_helper'

module Crichton 
  module DiceBag
    describe Template do
      describe '#tempates_location' do
        it 'returns the config_directory' do
          Crichton.stub(:config_directory).and_return('config_directory')
          Template.new.templates_location.should == 'config_directory'
        end
      end
  
      describe '#tempates_location' do
        it 'returns the config_directory' do
          Template.new.templates.first.should =~ /crichton.yml.dice$/
        end
      end
    end
  end
end<commit_msg>fix c&p errors and DRY spec<commit_after>require 'spec_helper'

module Crichton 
  module DiceBag
    describe Template do
      describe '#tempates_location' do
        it 'returns the location that templates are generated for a project' do
          Crichton.stub(:config_directory).and_return('config_directory')
          subject.templates_location.should == 'config_directory'
        end
      end
  
      describe '#tempates' do
        it 'returns an array of templates' do
          subject.templates.first.should =~ /crichton.yml.dice$/
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.0726159230096238, 'fraction_numerical': 0.0, 'mean_word_length': 2.5638629283489096, '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': '2262909', 'n_tokens_mistral': 324, 'n_tokens_neox': 319, 'n_words': 87}