spec/runner/formatters/specdoc_spec.rb in mspec-1.3.0 vs spec/runner/formatters/specdoc_spec.rb in mspec-1.3.1

- old
+ new

@@ -43,9 +43,17 @@ it "prints the #it string" do @formatter.before @state @out.should == "- it" end + + it "resets the #exception? flag" do + exc = ExceptionState.new @state, nil, ExpectationNotMetError.new("disappointing") + @formatter.exception exc + @formatter.exception?.should be_true + @formatter.before @state + @formatter.exception?.should be_false + end end describe SpecdocFormatter, "#exception" do before :each do $stdout = @out = IOStub.new