網路論壇
網路論壇
登入
網路論壇
網路論壇
mocha-developer
會話群組
關於
提供意見
說明
群組路徑
mocha-developer
第 1 - 30 個,共有 128 個
The Mocha documentation is at
https://mocha.jamesmead.org
The Mocha source is at
https://github.com/
freerange/mocha
全部標示為已讀取
檢舉群組
已選取 0 列
Julie Anne Moore
,
floehopper
2
2019/10/23
Custom failure messages
Hi Julie, We're managing issues on the GitHub repo these days, so I've taken the liberty of
未讀,
Custom failure messages
Hi Julie, We're managing issues on the GitHub repo these days, so I've taken the liberty of
2019/10/23
Grant Schoep
,
floehopper
2
2018/11/10
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
未讀,
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
2018/11/10
Benoit Mio
,
floehopper
3
2015/5/4
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
未讀,
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
2015/5/4
Yedhu Krishnan
,
floehopper
2
2014/11/24
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
未讀,
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
2014/11/24
Garrett Hart
,
floehopper
3
2014/11/10
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
未讀,
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
2014/11/10
Jeff Winkler
,
floehopper
2
2013/10/9
Checking method presence/arity?
Hi Jeff, I've certainly have it in mind for a while - https://github.com/freerange/mocha/issues/
未讀,
Checking method presence/arity?
Hi Jeff, I've certainly have it in mind for a while - https://github.com/freerange/mocha/issues/
2013/10/9
Greg Akins
,
floehopper
2
2013/9/26
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
未讀,
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
2013/9/26
spilled_coffee
,
floehopper
2
2013/2/23
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
未讀,
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
2013/2/23
spilled_coffee
, …
Duncan Beevers
4
2012/10/19
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,
未讀,
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,
2012/10/19
C. Benson Manica
,
floehopper
3
2012/8/7
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
未讀,
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
2012/8/7
Noppanit
, …
dchel...@gmail.com
14
2012/7/4
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
未讀,
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
2012/7/4
patrick99e99
,
James Mead
7
2012/5/14
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
未讀,
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
2012/5/14
James Mead
2012/5/4
Mocha source and documentation has moved
The Mocha documentation has moved to http://gofreerange.com/mocha/docs/ The Mocha source has moved to
未讀,
Mocha source and documentation has moved
The Mocha documentation has moved to http://gofreerange.com/mocha/docs/ The Mocha source has moved to
2012/5/4
kennyj
,
James Mead
3
2012/2/11
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
未讀,
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
2012/2/11
Rob Percival
,
James Mead
2
2012/1/4
Strange Stubbing Behaviour
On 4 Jan 2012, at 16:46, Rob Percival wrote: Hi, I've run into a confusing case where stubbing a
未讀,
Strange Stubbing Behaviour
On 4 Jan 2012, at 16:46, Rob Percival wrote: Hi, I've run into a confusing case where stubbing a
2012/1/4
gerhardk
,
floehopper
6
2012/1/1
Mock Clickatell API
Hey James Thanks for the reply will try it when I'm back at the office. Gerhard -----Original
未讀,
Mock Clickatell API
Hey James Thanks for the reply will try it when I'm back at the office. Gerhard -----Original
2012/1/1
Jack Zelig
, …
James Mead
11
2011/10/12
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
未讀,
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
2011/10/12
Murray Steele
, …
Nikos Dimitrakopoulos
5
2011/9/15
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
未讀,
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
2011/9/15
patrick99e99
, …
James Mead
3
2011/9/1
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
未讀,
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
2011/9/1
Lawrence Forooghian
, …
David Chelimsky
4
2011/8/6
A more specific any_instance...
Hi Lawrence (and James), The problem you've detailed in your gist stems from the fact that
未讀,
A more specific any_instance...
Hi Lawrence (and James), The problem you've detailed in your gist stems from the fact that
2011/8/6
Andre
,
James Mead
4
2011/7/28
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
未讀,
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
2011/7/28
Jakob Hilden
2011/7/26
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
未讀,
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
2011/7/26
Matt Smith
,
James Mead
5
2011/5/21
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: >
未讀,
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: >
2011/5/21
sserdyuk
, …
Vladimir Rybas
7
2011/5/14
stubs disapper
Yeah James, that was it. The ':false' instead of 'false'. Gosh ) Working now On Sat,
未讀,
stubs disapper
Yeah James, that was it. The ':false' instead of 'false'. Gosh ) Working now On Sat,
2011/5/14
superlou
, …
James Mead
7
2011/5/14
Mocha sanity check
The load order for mocha & shoulda is important, because they monkey-patch Test::Unit. If you don
未讀,
Mocha sanity check
The load order for mocha & shoulda is important, because they monkey-patch Test::Unit. If you don
2011/5/14
David Trasbo
, …
James Mead
9
2011/5/14
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
未讀,
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
2011/5/14
James Mead
2
2011/2/15
Fwd: Please help in regard with Mocha
On Feb 15, 8:41 pm, James Mead <jamesmea...@gmail.com> wrote: > From: vivek dhayalan <
未讀,
Fwd: Please help in regard with Mocha
On Feb 15, 8:41 pm, James Mead <jamesmea...@gmail.com> wrote: > From: vivek dhayalan <
2011/2/15
Robert Pankowecki (rupert)
,
James Mead
3
2011/2/7
A little unexpected behavior
Few conclusions that came to my mind after reading the tests: a) obj.expects(...) <=> obj.
未讀,
A little unexpected behavior
Few conclusions that came to my mind after reading the tests: a) obj.expects(...) <=> obj.
2011/2/7
James Mead
2011/2/3
Mocha 0.9.11 released
See http://jamesmead.org/blog/2011-02-03-mocha-release-0-9-11
未讀,
Mocha 0.9.11 released
See http://jamesmead.org/blog/2011-02-03-mocha-release-0-9-11
2011/2/3
marco
, …
Robert Pankowecki
6
2011/1/21
How to use "expects" in chained methods?
I use something like this: object.expects(:method).returns( mock do |method| expects(:another_method)
未讀,
How to use "expects" in chained methods?
I use something like this: object.expects(:method).returns( mock do |method| expects(:another_method)
2011/1/21