Groups
Sign in
Groups
mocha-developer
Conversations
About
Send feedback
Help
mocha-developer
Contact owners and managers
1–30 of 128
The Mocha documentation is at
https://mocha.jamesmead.org
The Mocha source is at
https://github.com/
freerange/mocha
Mark all as read
Report group
0 selected
Julie Anne Moore
,
floehopper
2
10/23/19
Custom failure messages
Hi Julie, We're managing issues on the GitHub repo these days, so I've taken the liberty of
unread,
Custom failure messages
Hi Julie, We're managing issues on the GitHub repo these days, so I've taken the liberty of
10/23/19
Grant Schoep
,
floehopper
2
11/10/18
Mocking a call out, matching specific parameters but not others
Hi Grant, I hope you don't mind, but I've opened a new issue [1] on the Mocha GitHub repo to
unread,
Mocking a call out, matching specific parameters but not others
Hi Grant, I hope you don't mind, but I've opened a new issue [1] on the Mocha GitHub repo to
11/10/18
Benoit Mio
,
floehopper
3
5/4/15
Problems when switching from rails4.1 to rails4.2
Thanks James will subscribe to the github issue too. Le lundi 4 mai 2015 12:33:37 UTC+2, floehopper a
unread,
Problems when switching from rails4.1 to rails4.2
Thanks James will subscribe to the github issue too. Le lundi 4 mai 2015 12:33:37 UTC+2, floehopper a
5/4/15
Yedhu Krishnan
,
floehopper
2
11/24/14
How to test if a method is being called in the controller?
This is the mailing list for the Ruby mocking library, Mocha. I suspect you want the JS testing
unread,
How to test if a method is being called in the controller?
This is the mailing list for the Ruby mocking library, Mocha. I suspect you want the JS testing
11/24/14
Garrett Hart
,
floehopper
3
11/10/14
Only stub method when it is called with specific parameters.
Thank you James. That worked. On Saturday, November 1, 2014 7:08:59 AM UTC-4, floehopper wrote: Hi
unread,
Only stub method when it is called with specific parameters.
Thank you James. That worked. On Saturday, November 1, 2014 7:08:59 AM UTC-4, floehopper wrote: Hi
11/10/14
Jeff Winkler
,
floehopper
2
10/9/13
Checking method presence/arity?
Hi Jeff, I've certainly have it in mind for a while - https://github.com/freerange/mocha/issues/
unread,
Checking method presence/arity?
Hi Jeff, I've certainly have it in mind for a while - https://github.com/freerange/mocha/issues/
10/9/13
Greg Akins
,
floehopper
2
9/26/13
Mock working in console, but not in server
Hi Greg, Wow! That's a pretty old version of Rails! Also Mocha was never really designed to do
unread,
Mock working in console, but not in server
Hi Greg, Wow! That's a pretty old version of Rails! Also Mocha was never really designed to do
9/26/13
spilled_coffee
,
floehopper
2
2/23/13
Mock object, object_id and ruby debugger
Hi. Sorry it's taken so long to reply. This message somehow ended up in my spam filter. I've
unread,
Mock object, object_id and ruby debugger
Hi. Sorry it's taken so long to reply. This message somehow ended up in my spam filter. I've
2/23/13
spilled_coffee
, …
Duncan Beevers
4
10/19/12
Invoking the original method on original object after expectation matching?
There are a couple of camps regarding this, and I tend to fall into the same camp as James on this,
unread,
Invoking the original method on original object after expectation matching?
There are a couple of camps regarding this, and I tend to fall into the same camp as James on this,
10/19/12
C. Benson Manica
,
floehopper
3
8/7/12
Mock only, no verification
Hi. Did that help? Or are you still stuck? James. On Monday, 6 August 2012 22:46:40 UTC+1, floehopper
unread,
Mock only, no verification
Hi. Did that help? Or are you still stuck? James. On Monday, 6 August 2012 22:46:40 UTC+1, floehopper
8/7/12
Noppanit
, …
dchel...@gmail.com
14
7/4/12
Mocking leaked to other tests in Sinatra and Rspec
I just merged the fix to master, which is currently aligned w/ the 10.x series. 2.11 release coming
unread,
Mocking leaked to other tests in Sinatra and Rspec
I just merged the fix to master, which is currently aligned w/ the 10.x series. 2.11 release coming
7/4/12
patrick99e99
,
James Mead
7
5/14/12
undefined method `matches_method?' for nil:NilClass
Hi Patrick, I'm sorry I haven't had a chance to look into this any further. I've created
unread,
undefined method `matches_method?' for nil:NilClass
Hi Patrick, I'm sorry I haven't had a chance to look into this any further. I've created
5/14/12
James Mead
5/4/12
Mocha source and documentation has moved
The Mocha documentation has moved to http://gofreerange.com/mocha/docs/ The Mocha source has moved to
unread,
Mocha source and documentation has moved
The Mocha documentation has moved to http://gofreerange.com/mocha/docs/ The Mocha source has moved to
5/4/12
kennyj
,
James Mead
3
2/11/12
When I executed `rake test_postgresql` in rails/active_record. I found warning in mocha.
On 11 Feb 2012, at 14:45, kennyj wrote: Dear mocha-developer. I'm a rails contributor. When I
unread,
When I executed `rake test_postgresql` in rails/active_record. I found warning in mocha.
On 11 Feb 2012, at 14:45, kennyj wrote: Dear mocha-developer. I'm a rails contributor. When I
2/11/12
Rob Percival
,
James Mead
2
1/4/12
Strange Stubbing Behaviour
On 4 Jan 2012, at 16:46, Rob Percival wrote: Hi, I've run into a confusing case where stubbing a
unread,
Strange Stubbing Behaviour
On 4 Jan 2012, at 16:46, Rob Percival wrote: Hi, I've run into a confusing case where stubbing a
1/4/12
gerhardk
,
floehopper
6
1/1/12
Mock Clickatell API
Hey James Thanks for the reply will try it when I'm back at the office. Gerhard -----Original
unread,
Mock Clickatell API
Hey James Thanks for the reply will try it when I'm back at the office. Gerhard -----Original
1/1/12
Jack Zelig
, …
James Mead
11
10/12/11
Problems using Mocha plugin with Rails 3
> I may be missing something, but it seems to me that the bloke you are working for is being a bit
unread,
Problems using Mocha plugin with Rails 3
> I may be missing something, but it seems to me that the bloke you are working for is being a bit
10/12/11
Murray Steele
, …
Nikos Dimitrakopoulos
5
9/15/11
Stubbing out helpers in rails functional testing / any_instance stubbing on extended things
I know it's three years later but I just faced this problem. My exact scenario is slightly
unread,
Stubbing out helpers in rails functional testing / any_instance stubbing on extended things
I know it's three years later but I just faced this problem. My exact scenario is slightly
9/15/11
patrick99e99
, …
James Mead
3
9/1/11
strangeness with stubbing in a setup block
Hi Patrick. I just tried to reproduce the problem you described, but I haven't had any luck with
unread,
strangeness with stubbing in a setup block
Hi Patrick. I just tried to reproduce the problem you described, but I haven't had any luck with
9/1/11
Lawrence Forooghian
, …
David Chelimsky
4
8/6/11
A more specific any_instance...
Hi Lawrence (and James), The problem you've detailed in your gist stems from the fact that
unread,
A more specific any_instance...
Hi Lawrence (and James), The problem you've detailed in your gist stems from the fact that
8/6/11
Andre
,
James Mead
4
7/28/11
3.1.0.rc4 Mocha expectations don't fail?
hi... sorry it took a bit to get back to you. So I am seeing the same behavior with a fresh
unread,
3.1.0.rc4 Mocha expectations don't fail?
hi... sorry it took a bit to get back to you. So I am seeing the same behavior with a fresh
7/28/11
Jakob Hilden
7/26/11
Possible to only stub method call with a specific parameter and leave other calls alone?
Hi everybody, does anybody know whether it is possible with Mocha to stub a method call only with a
unread,
Possible to only stub method call with a specific parameter and leave other calls alone?
Hi everybody, does anybody know whether it is possible with Mocha to stub a method call only with a
7/26/11
Matt Smith
,
James Mead
5
5/21/11
Test::Unit and Mocha (first project)
On 21 May 2011, at 08:37, James Mead wrote: > On 20 May 2011, at 23:20, Matt Smith wrote: >
unread,
Test::Unit and Mocha (first project)
On 21 May 2011, at 08:37, James Mead wrote: > On 20 May 2011, at 23:20, Matt Smith wrote: >
5/21/11
sserdyuk
, …
Vladimir Rybas
7
5/14/11
stubs disapper
Yeah James, that was it. The ':false' instead of 'false'. Gosh ) Working now On Sat,
unread,
stubs disapper
Yeah James, that was it. The ':false' instead of 'false'. Gosh ) Working now On Sat,
5/14/11
superlou
, …
James Mead
7
5/14/11
Mocha sanity check
The load order for mocha & shoulda is important, because they monkey-patch Test::Unit. If you don
unread,
Mocha sanity check
The load order for mocha & shoulda is important, because they monkey-patch Test::Unit. If you don
5/14/11
David Trasbo
, …
James Mead
9
5/14/11
How to allow other calls to a method than those #expected
Duncan, Thanks for helping David out with lots of good advice. David, I hope you've found some
unread,
How to allow other calls to a method than those #expected
Duncan, Thanks for helping David out with lots of good advice. David, I hope you've found some
5/14/11
James Mead
2
2/15/11
Fwd: Please help in regard with Mocha
On Feb 15, 8:41 pm, James Mead <jamesmea...@gmail.com> wrote: > From: vivek dhayalan <
unread,
Fwd: Please help in regard with Mocha
On Feb 15, 8:41 pm, James Mead <jamesmea...@gmail.com> wrote: > From: vivek dhayalan <
2/15/11
Robert Pankowecki (rupert)
,
James Mead
3
2/7/11
A little unexpected behavior
Few conclusions that came to my mind after reading the tests: a) obj.expects(...) <=> obj.
unread,
A little unexpected behavior
Few conclusions that came to my mind after reading the tests: a) obj.expects(...) <=> obj.
2/7/11
James Mead
2/3/11
Mocha 0.9.11 released
See http://jamesmead.org/blog/2011-02-03-mocha-release-0-9-11
unread,
Mocha 0.9.11 released
See http://jamesmead.org/blog/2011-02-03-mocha-release-0-9-11
2/3/11
marco
, …
Robert Pankowecki
6
1/21/11
How to use "expects" in chained methods?
I use something like this: object.expects(:method).returns( mock do |method| expects(:another_method)
unread,
How to use "expects" in chained methods?
I use something like this: object.expects(:method).returns( mock do |method| expects(:another_method)
1/21/11