<commit_before>require 'static_paths/static_paths'

require 'spec_helper'
require 'helpers/static'

shared_examples_for "Methods" do
  before(:all) do
    Helpers::STATIC_DIRS.each do |dir|
      @context.register_static_dir dir
    end
  end

  it "should list static directories" do
    Helpers::STATIC_DIRS.each do |dir|
      @context.static_paths.include?(dir).should == true
    end
  end

  it "should prevent the addition of non-existant directories" do
    lambda {
      @context.register_static_dir 'lol'
    }.should raise_error(RuntimeError)
  end

  it "should prevent the addition of non-directories" do<commit_msg>Use "should include(var)" rspec syntax.<commit_after>require 'static_paths/static_paths'

require 'spec_helper'
require 'helpers/static'

shared_examples_for "Methods" do
  before(:all) do
    Helpers::STATIC_DIRS.each do |dir|
      @context.register_static_dir dir
    end
  end

  it "should list static directories" do
    Helpers::STATIC_DIRS.each do |dir|
      @context.static_paths.should include(dir)
    end
  end

  it "should prevent the addition of non-existant directories" do
    lambda {
      @context.register_static_dir 'lol'
    }.should raise_error(RuntimeError)
  end

  it "should prevent the addition of non-directories" do
{'fraction_non_alphanumeric': 0.08535630383711824, 'fraction_numerical': 0.0, 'mean_word_length': 3.9153846153846152, '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': '7524156', 'n_tokens_mistral': 412, 'n_tokens_neox': 396, 'n_words': 111}