<commit_before>require 'spec_helper'

describe IPVSLitmus do
  describe 'configure' do
    it 'populates services from the config file' do
      IPVSLitmus.configure(TEST_CONFIG)
      IPVSLitmus.services.has_key?('test').should == true
    end
  end

  describe "reload" do
    it "will reconfigure the services" do
      IPVSLitmus.configure(TEST_CONFIG)
      IPVSLitmus.services["bar"] = :service

      Process.kill("HUP", Process.pid)

      IPVSLitmus.services.has_key?('bar').should == false
      IPVSLitmus.services.has_key?('test').should == true
    end
  end
end
<commit_msg>don't test reloads using signals, just call the method.<commit_after>require 'spec_helper'

describe IPVSLitmus do
  describe 'configure' do
    it 'populates services from the config file' do
      IPVSLitmus.configure(TEST_CONFIG)
      IPVSLitmus.services.has_key?('test').should == true
    end
  end

  describe "reload" do
    it "will reconfigure the services" do
      IPVSLitmus.configure(TEST_CONFIG)
      IPVSLitmus.services["bar"] = :service

      IPVSLitmus.reload

      IPVSLitmus.services.has_key?('bar').should == false
      IPVSLitmus.services.has_key?('test').should == true
    end
  end
end

{'fraction_non_alphanumeric': 0.10224438902743142, 'fraction_numerical': 0.0, 'mean_word_length': 3.4925373134328357, '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': '3361619', 'n_tokens_mistral': 401, 'n_tokens_neox': 378, 'n_words': 91}