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