<commit_before>require "test_helper"

describe HttpMonkey::Configuration do

  subject do
    HttpMonkey::Configuration.new
  end

  describe "#clone" do
    it "#behaviours" do
      clone = subject.clone
      subject.behaviours.wont_be_same_as(clone.behaviours)
    end
    it "#middlewares" do
      clone = subject.clone
      subject.middlewares.wont_be_same_as(clone.middlewares)
    end
  end

  describe "#net_adapter" do
    it "returns value" do
      subject.net_adapter.must_equal(:net_http)
    end
    it "sets value" do
      subject.net_adapter(:curb)
      subject.net_adapter.must_equal(:curb)
    end
  end

  describe "#behaviours" do
    it "respond_to" do
      subject.must_respond_to(:behaviours)
    end
    it "returns value" do
      subject.behaviours.must_be_instance_of(HttpMonkey::Configuration::Behaviours)
    end<commit_msg>Better desc on configuration test<commit_after>require "test_helper"

describe HttpMonkey::Configuration do

  subject do
    HttpMonkey::Configuration.new
  end

  describe "#clone" do
    it "#behaviours" do
      clone = subject.clone
      subject.behaviours.wont_be_same_as(clone.behaviours)
    end
    it "#middlewares" do
      clone = subject.clone
      subject.middlewares.wont_be_same_as(clone.middlewares)
    end
  end

  describe "#net_adapter" do
    it "returns :net_http by default" do
      subject.net_adapter.must_equal(:net_http)
    end
    it "sets value" do
      subject.net_adapter(:curb)
      subject.net_adapter.must_equal(:curb)
    end
  end

  describe "#behaviours" do
    it "respond_to" do
      subject.must_respond_to(:behaviours)
    end
    it "returns value" do
      subject.behaviours.must_be_instance_of(HttpMonkey::Configuration::Behaviours)
    end
{'fraction_non_alphanumeric': 0.0838562464346834, 'fraction_numerical': 0.0, 'mean_word_length': 3.2885085574572126, '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': '5202181', 'n_tokens_mistral': 597, 'n_tokens_neox': 585, 'n_words': 121}