« At RailsEdge | Main | Antipattern: Something Stupid and Rapid Development »

January 28, 2007

Comments

Haakon

For mock objects in Ruby, the Mocha gem is by far the best mocking library I have used (http://mocha.rubyforge.org/). It's big wins are:

* you can mock methods on real classes, not just mock classes
* you can mock "any instance" of a class, making it possible to test code that does not use dependency injection
* you don't have to check expectations - they are automatically checked when the expectation goes out of scope.

Mocha is well worth exploring.

slicematt

Hi Ken - let us know if we can answer any questions for you.

LEGO Boy

just heard about deprec. Cool. Ubuntu... mmmmm...

that visor app sounds cool. downloading now.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

March 2010

Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31