search for: jpywtora

Displaying 5 results from an estimated 5 matches for "jpywtora".

2007 Jun 11
12
Mocking system/`
This drives me insane on a regular basis. How does one mock system(''blah'') or `blah` ? Adding expectations on Kernel doesn''t do it. Adding expectations on Object just makes me sad: Object.any_instance.expects(:system).with(''ls'') # => #<Mock:0x12b584e>.system(''ls'') - expected calls: 0, actual calls: 1 And this really
2006 Dec 15
0
Fwd: Re: [HOWTO] Edgemocha
---------- Forwarded message ---------- From: James Mead <jamesmead44 at gmail.com> Date: 15-Dec-2006 11:54 Subject: Re: [HOWTO] Edgemocha To: ruby-talk at ruby-lang.org On 15/12/06, jpywtora at calpoly.edu <jpywtora at calpoly.edu> wrote: > http://ruby-talk.blogspot.com/2006/12/get-edge-that-is-edgemocha.html > > All the mocha talk pushed me to the edge ;-) > Hope it is helpful Thanks for your interest. I think you''ve given us more of an incentive to get ano...
2006 Dec 15
0
Fwd: Re: Re: [HOWTO] Edgemocha
---------- Forwarded message ---------- From: James Mead <jamesmead44 at gmail.com> Date: 15-Dec-2006 17:37 Subject: Re: Re: [HOWTO] Edgemocha To: John Pywtorak <jpywtora at calpoly.edu> On 15/12/06, John Pywtorak <jpywtora at calpoly.edu> wrote: > Compare > ~$ sudo gem install mocha > Attempting local installation of ''mocha'' > Successfully installed mocha-0.3.2 > ~$ irb > irb(main):001:0> require ''rubygems&...
2006 Dec 19
9
Stubbing ActiveRecord Models gets very difficult with instance methods
I have seen some basic examples of using Mocha and Stubba with ActiveRecord Models; However, the ones I read were somewhat simplistic. That is they stubbed the find class method of the model, or the execute method of the connection object. While stubbing the find method had the desired effect for the author it did not help with a situation I was hacking away on. Which was writing a test case
2007 Sep 21
5
Stubbing yielding methods
I''ve just been tying my brain in knots looking at bug #8687 ( http://rubyforge.org/tracker/index.php?func=detail&aid=8687&group_id=1917&atid=7477 ). I''ve been (1) trying to work out whether there is anything logically wrong with Mocha''s existing behaviour and (2) whether Mocha should support the requested functionality. It all centres around the use of the