<commit_before>require "spec_helper"

describe Cielo::Configuration do
  subject { described_class.new }

  its(:host) { should == "qasecommerce.cielo.com.br" }
  its(:port) { should == 443 }
  its(:path) { should == "/servicos/ecommwsec.do" }
  its(:logger) { should be_nil }

  context "defining new values" do
    it "changes the host" do
      subject.host = "a.com"
      subject.host.should == "a.com"
    end

    it "changes the port" do
      subject.host = 80
      subject.host.should == 80
    end

    it "changes the path" do
      subject.host = "/something_else"
      subject.host.should == "/something_else"
    end

    it "changes the logger" do
      MyLogger = Class.new(Logger)

      subject.logger = MyLogger.new(STDOUT)
      subject.logger.should be_instance_of(MyLogger)
    end
  end
end<commit_msg>fix the spec<commit_after>require "spec_helper"

describe Cielo::Configuration do
  subject { described_class.new }

  its(:host) { should == "qasecommerce.cielo.com.br" }
  its(:port) { should == 443 }
  its(:path) { should == "/servicos/ecommwsec.do" }
  its(:logger) { should be_nil }

  context "defining new values" do
    it "changes the host" do
      subject.host = "a.com"
      subject.host.should == "a.com"
    end

    it "changes the port" do
      subject.host = 80
      subject.host.should == 80
    end

    it "changes the path" do
      subject.host = "/something_else"
      subject.host.should == "/something_else"
    end

    it "changes the logger" do
      require "logger"
      MyLogger = Class.new(Logger)

      subject.logger = MyLogger.new(STDOUT)
      subject.logger.should be_instance_of(MyLogger)
    end
  end
end
{'fraction_non_alphanumeric': 0.11918951132300358, 'fraction_numerical': 0.00834326579261025, 'mean_word_length': 2.7228381374722836, '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': '6624375', 'n_tokens_mistral': 575, 'n_tokens_neox': 544, 'n_words': 139}