[mocha-developer] Fwd: [ mocha-Bugs-11885 ] never doesn't work with stub_everything
James Mead
jamesmead44 at gmail.com
Wed Jul 4 14:45:18 EDT 2007
---------- 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
More information about the mocha-developer
mailing list