James Mead
2007-Jul-04 18:45 UTC
[mocha-developer] Fwd: [ mocha-Bugs-11885 ] never doesn''t work with stub_everything
---------- Forwarded message ---------- From: noreply at rubyforge.org <noreply at rubyforge.org> Date: 30-Jun-2007 14:33 Subject: [ mocha-Bugs-11885 ] never doesn''t work with stub_everything To: noreply at rubyforge.org Bugs item #11885, was opened at 2007-06-27 14:13 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=7477&aid=11885&group_id=1917 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Alexander Lang (langalex) Assigned to: Nobody (None) Summary: never doesn''t work with stub_everything Initial Comment: running the following results in a succesful test with mocha 0.5.1 - it should fail because x is called on o. require ''rubygems'' require ''test/unit'' require ''mocha'' class MyTest < Test::Unit::TestCase def test_never o = stub_everything o.expects(:x).never o.x end end ---------------------------------------------------------------------->Comment By: James Mead (jamesmead)Date: 2007-06-30 13:33 Message: You are quite right. Thanks for the bug report. In fact there are a few issues related to this. I need to have a bit of a think about it... ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=7477&aid=11885&group_id=1917 -- James. http://blog.floehopper.org
Seemingly Similar Threads
- Fwd: [ mocha-Bugs-16523 ] Ruby 1.9 gives warning
- Fwd: [ mocha-Bugs-5892 ] Using a setup method in test_case_class destroys subsequent test cases
- Fwd: [ mocha-Bugs-6416 ] Mock objects shouldn''t define #to_s
- Fwd: [ mocha-Bugs-8687 ] Block''s return value is dropped on stubbed yielding methods.
- Fwd: [ mocha-Bugs-7834 ] infinte_range.rb makes incorrect assumption about to_f