Sha256: 6292674bb52e0f18d27b103e4e0ae9cc5129a87c76846a9490a237370d64c921
Contents?: true
Size: 921 Bytes
Versions: 1
Compression:
Stored size: 921 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 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
konacha-0.9.0 | spec/runner_spec.rb |