Sha256: be23c6abec21bad2fa23fe933e78f564fae00682a50bbae6c5a3061baa2812d9
Contents?: true
Size: 693 Bytes
Versions: 3
Compression:
Stored size: 693 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper' require 'mspec/runner/formatters/summary' require 'mspec/runner/example' describe SummaryFormatter, "#after" do before :each do $stdout = @out = IOStub.new @formatter = SummaryFormatter.new @formatter.register @state = ExampleState.new("describe", "it") end after :each do $stdout = STDOUT end it "does not print anything" do exc = ExceptionState.new @state, nil, ExpectationNotMetError.new("disappointing") @formatter.exception exc exc = ExceptionState.new @state, nil, MSpecExampleError.new("painful") @formatter.exception exc @formatter.after(@state) @out.should == "" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mspec-1.2.0 | spec/runner/formatters/summary_spec.rb |
mspec-1.3.0 | spec/runner/formatters/summary_spec.rb |
mspec-1.3.1 | spec/runner/formatters/summary_spec.rb |