search for: reevoo

Displaying 10 results from an estimated 10 matches for "reevoo".

Did you mean: reeves
2006 Oct 25
2
Isn''t it possible to stub / expect on :id ?
Hi all ! Running this: @payout = stub_everything(:id => 141) Payout.stubs(:find).with(@payout.id).returns(@payout) Generates this warning: ./test/functional/payouts_controller_test.rb:22: warning: Object#id will be deprecated; use Object#object_id What am I missing ? :id is a fairly frequent method to override in Rails-based applications. I''m using Mocha from
2007 Sep 06
5
Removing/overriding/unstubbing a stub?
We''re using Mocha stubs to stub out a slow-performing network request in a Test::Unit class. But naturally, we don''t want to stub it out in the few tests that actually verify the functionality of that network request. Is there a way to do the stub in "setup", but override it for the few tests that need the original functionality? (I realize that in this case, the
2006 Dec 13
0
RSpec the video
Hilarious => http://www.reevoo.com/blogs/bengriffiths/2006/12/12/rspec-video/
2007 Sep 05
2
how to test timeouts? that #returns deprecation again...
I''m writing quite a few specs lately that use Ruby''s Timeout::timeout functionality, making sure that timeout errors are properly handled and everything flows right when some command line tools timeout. I like being able to use Mocha''s #returns right now to force a method to raise a TimeoutError, but I know that usage is going away at some point. I''d like to
2007 Feb 05
10
how does Mocha compare in terms of classical vs mock-based testing, and stubbing???
Hi guys, I''ve just been reading Martin Fowler''s article re mock versus stubbing<http://martinfowler.com/articles/mocksArentStubs.html>where he compares traditional TDD testing techniques with mock based testing. I''d be interested in comments from a ruby on rails perspective in terms of this and Mocha? For example: a) Do you see Mocha as a robust way to test Ruby
2007 Mar 06
15
mocking missing methods
Hi folks. So I''m using mocha on a ruby project, and I really like it. One thing I''ve noticed is that it can be a bit "surprising" when I''m mocking methods that don''t exist on an object, and I think there''s an easyish fix. At the moment, you use sheep = mock() to create a mock sheep. What I''d like to do is something like sheep =
2005 Nov 16
19
Concerns over Rails' handling of tests
...t would make far more sense to break it down into ArticleViewTest, ArticlePostTest, FailedArticleCreate test and SuccessfulArticleCreate, because each of those represent different contexts, or fixtures. I''m quite keen on Ben Griffiths'' testing approach outlined here<http://www.reevoo.com/blogs/bengriffiths/2005/06/24/a-test-by-any-other-name/>and have also been looking into Dave Astels'' RSpec <http://rspec.rubyforge.org/> and have to agree with the idea of testcases being bound by fixtures. If you have test methods that require common setups, the code should b...
2007 Jul 21
0
Mocha featured on Railscasts
Cool. Thanks for letting me know. On 21 Jul 2007, at 09:20, Chris O''Sullivan wrote: > Heya James, > > I thought you''d like to know that Mocha featured in the latest > Railscasts. > > Check it out here: http://railscasts.com/episodes/60 > > -Chris >
2007 Jul 21
0
Fwd: Tagging Mocha 0.5.x
Mocha 0.5.2 now tagged in svn repos. Begin forwarded message: > From: James Mead <james.mead at mail.com> > Date: 21 July 2007 10:21:11 BDT > To: Zach Dennis <zach.dennis at gmail.com> > Subject: Re: Tagging Mocha 0.5.x > > Hi Zach, > > Thanks for pointing that out. I''ve just tagged 0.5.2 and will try > to retrofit earlier tags as soon as I can.
2007 Jul 24
3
mocha tarballs don''t uncompress cleanly
Hi Antonio, My environment is OS X 10.4.8. Thanks a lot for looking into the problem. Please let me know if I can do anything to help. I have had problems previously with tar including Mac resource fork files. Could this be what is causing your problem? James. On 24 Jul 2007, at 20:42, Antonio Terceiro wrote: > Hi James, > > First of all, thanks for mocha, it''s a really