spec/runner/formatters/specdoc_spec.rb in mspec-1.5.10 vs spec/runner/formatters/specdoc_spec.rb in mspec-1.5.11

- old
+ new

@@ -45,11 +45,11 @@ @formatter.before @state @out.should == "- it" end it "resets the #exception? flag" do - exc = ExceptionState.new @state, nil, ExpectationNotMetError.new("disappointing") + exc = ExceptionState.new @state, nil, SpecExpectationNotMetError.new("disappointing") @formatter.exception exc @formatter.exception?.should be_true @formatter.before @state @formatter.exception?.should be_false end @@ -65,23 +65,23 @@ after :each do $stdout = STDOUT end - it "prints 'ERROR' if an exception is not an ExpectationNotMetError" do + it "prints 'ERROR' if an exception is not an SpecExpectationNotMetError" do exc = ExceptionState.new @state, nil, MSpecExampleError.new("painful") @formatter.exception exc @out.should == " (ERROR - 1)" end - it "prints 'FAILED' if an exception is an ExpectationNotMetError" do - exc = ExceptionState.new @state, nil, ExpectationNotMetError.new("disappointing") + it "prints 'FAILED' if an exception is an SpecExpectationNotMetError" do + exc = ExceptionState.new @state, nil, SpecExpectationNotMetError.new("disappointing") @formatter.exception exc @out.should == " (FAILED - 1)" end it "prints the #it string if an exception has already been raised" do - exc = ExceptionState.new @state, nil, ExpectationNotMetError.new("disappointing") + exc = ExceptionState.new @state, nil, SpecExpectationNotMetError.new("disappointing") @formatter.exception exc exc = ExceptionState.new @state, nil, MSpecExampleError.new("painful") @formatter.exception exc @out.should == " (FAILED - 1)\n- it (ERROR - 2)" end