<commit_before>require 'spec_helper'

describe Konacha::Runner do
  before do
    Konacha.mode = :runner
    Konacha.config.driver = :selenium_with_firebug
  end

  let(:runner) { Konacha::Runner.new(:output => buffer) }
  let(:buffer) { StringIO.new }

  describe "#run" do
    before { runner.run }

    it "prints results to the output" do
      buffer.rewind
      results = buffer.read
      results.should include(".......F.....")
      results.should include("expected 4 to equal 5")
      results.should include("13 examples, 1 failure")
    end
  end

  describe "#run_spec" do
    let(:spec) { Konacha::Spec.find("failing_spec") }
    before { runner.spec_runner(spec).run }

    it "prints results to the output" do
      buffer.rewind
      results = buffer.read
      results.should include('F')
      results.should include("expected 4 to equal 5")
      results.should include("1 examples, 1 failures")
    end
  end<commit_msg>Do not test against dots; ordering is undefined<commit_after>require 'spec_helper'

describe Konacha::Runner do
  before do
    Konacha.mode = :runner
    Konacha.config.driver = :selenium_with_firebug
  end

  let(:runner) { Konacha::Runner.new(:output => buffer) }
  let(:buffer) { StringIO.new }

  describe "#run" do
    before { runner.run }

    it "prints results to the output" do
      buffer.rewind
      results = buffer.read
      results.should include("expected 4 to equal 5")
      results.should include("13 examples, 1 failure")
    end
  end

  describe "#run_spec" do
    let(:spec) { Konacha::Spec.find("failing_spec") }
    before { runner.spec_runner(spec).run }

    it "prints results to the output" do
      buffer.rewind
      results = buffer.read
      results.should include('F')
      results.should include("expected 4 to equal 5")
      results.should include("1 examples, 1 failures")
    end
  end
{'fraction_non_alphanumeric': 0.11312700106723586, 'fraction_numerical': 0.0096051227321238, 'mean_word_length': 2.9808917197452227, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6050961', 'n_tokens_mistral': 590, 'n_tokens_neox': 554, 'n_words': 162}