Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

MiniTest integration is counting ExpectationErrors as errors not failures

#41

For example with Ruby v1.8.6 and MiniTest gem v1.3.1 :-


gem 'minitest'
require 'minitest/autorun'
require 'mocha'

class TempTest < MiniTest::Unit::TestCase
  
  def test_me
    mockee = mock()
    mockee.expects(:blah)
  end
  
end

E 
Finished in 0.001008 seconds.

  1) Error:
test_me(TempTest):
Mocha::ExpectationError: not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: #<Mock:0x617844>.blah(any_parameters)

method test_me in temp_test.rb at line 9
method run_test_suites in unit.rb at line 413
method each in unit.rb at line 407
method run_test_suites in unit.rb at line 407
method each in unit.rb at line 406
method run_test_suites in unit.rb at line 406
method run in unit.rb at line 386
method autorun in unit.rb at line 327
at top level in temp_test.rb at line 7

1 tests, 1 assertions, 0 failures, 1 errors, 0 skips

Should be :-


1 tests, 1 assertions, 1 failures, 0 errors, 0 skips

Reported by James Mead · March 5th, 2009 @ 02:49 PM

State: resolved
Milestone: none
Assigned to: nobody

Activity

  1. James Mead
    James Mead
    • State changed from new to resolved

    March 5th, 2009 @ 03:04 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.