Sha256: a99db3619966cf62bf5690d44b4bf0704b7c9892ad044eef9d04631f5abaee20

Contents?: true

Size: 677 Bytes

Versions: 15

Compression:

Stored size: 677 Bytes

Contents

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
      # Failure output present?
      results.should include 'F'
      results.should include 'expected 4 to equal 5'
      # Summary and dots
      results.should include "#{runner.examples.length} examples, 1 failure"
      results.should match /^[.F]{#{runner.examples.length}}$/
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
konacha-1.4.1 spec/runner_spec.rb
konacha-1.4.0 spec/runner_spec.rb
konacha-1.3.1 spec/runner_spec.rb
konacha-1.3.0 spec/runner_spec.rb
konacha-1.2.4 spec/runner_spec.rb
konacha-1.2.3 spec/runner_spec.rb
konacha-1.2.2 spec/runner_spec.rb
konacha-1.2.1 spec/runner_spec.rb
konacha-1.2.0 spec/runner_spec.rb
konacha-1.1.3 spec/runner_spec.rb
konacha-1.1.2 spec/runner_spec.rb
konacha-1.1.1 spec/runner_spec.rb
konacha-1.1.0 spec/runner_spec.rb
konacha-1.0.0 spec/runner_spec.rb
konacha-1.0.0.rc1 spec/runner_spec.rb