test-unit/test-unit-rr

Test failed

uwabami opened this issue · 1 comments

/usr/bin/ruby1.9.1 test/run-test.rb
/usr/lib/ruby/vendor_ruby/rr/integrations.rb:35: warning: shadowing outer local variable - adapter
/usr/lib/ruby/vendor_ruby/rr/integrations.rb:36: warning: shadowing outer local variable - adapter
Loaded suite .
Started
..F
===============================================================================================================================================================
Failure:
test_failure(RRTest::AssertReceivedTest)
/home/uwabami/Sources/test-unit-rr/test/test-rr.rb:33:in `test_failure'
     30:       stub(subject).should_be_called
     31:       stub(subject).should_not_be_called
     32:       subject.should_be_called
  => 33:       assert_raise(::RR::Errors::SpyVerificationErrors::InvocationCountError) do
     34:         assert_received(subject) do |_subject|
     35:           _subject.should_not_be_called
     36:         end 

 expected but was

Expected should_not_be_called()
to be called 1 times,
but was called 0 times.
All of the method calls related to Doubles are:
        [#, :should_be_called, [], nil]>)>

diff:
+ Test::Unit::AssertionFailedError(
+ Expected should_not_be_called()
+ to be called 1 times,
+ but was called 0 times.
? RR::Errors::SpyVerifi    cationErrors::Invocati   onCountE   rror
? All     f th      method   lls   el           ed t  D  bles a e:
+       [#, :should_be_called, [], nil]>)
===============================================================================================================================================================
.

Finished in 0.030745526 seconds.

4 tests, 2 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
75% passed

130.10 tests/s, 65.05 assertions/s
rake aborted!
Command failed with status (1): [/usr/bin/ruby1.9.1 test/run-test.rb...]
/home/uwabami/Sources/test-unit-rr/Rakefile:42:in `block in '
Tasks: TOP => test   
(See full trace by running task with --trace)
kou commented

RR 1.1.1 has different behavior with RR 1.0.5.
I followed RR 1.1.1 API and dropped RR 1.0.5 support.

test-unit-rr 1.0.3 has been released that supports only RR 1.1.1 or later.

Thanks for your report!