A rant on a talk falling to pieces
Earlier this week I had the pleasure of doing a talk for the Belgian .NET user group. During this talk I ran in to all kinds of problems. I've done presentations where I was royally underprepared and to avoid that this time I actually started prepping for this talk on time. I was done on time, was prepared had 5 backups of my presentation and samples. What did I learn from this, if you're prepared other things will go wrong. I'll share the story of stuff that can go wrong. Before star...
Getting started with Caricature and IronRuby
IronRuby 0.5 was released yesterday. You can download it on codeplex. This post will explain how you setup your ironruby environment to use it for testing existing CLR based assemblies. We’ll touch installing gems using rake and most importantly writing a test for a CLR based class where we’ll mock out the dependencies. (more...)...
Caricature ready for beta
The last couple of days I’ve been getting Caricature to a more releasable state. The code got a thorough cleanup and refactor. Caricature now knows how to be a full mocking framework for Ruby classes and CLR classes that only interact with ruby objects. When I apply the 80/20 rule to caricature it’s definitely beta worthy. (more...)...
An update on caricature
Yesterday I explained about caricature but I didn’t have it fully tested yet. Today I’ve written a bunch of integration specs for all the platform combinations Caricature currently supports so you should be able to use Caricature also for plain ruby object mocking in addition to CLR interop mocking. After having a very brief twitter discussion with Scott I decided it would be a good idea to change the name of the methods when\_told\_to and was\_told\_to? . In ruby objects receive messages s...
IronRuby just got a mocking framework – kind of
As I mentioned in a previous post. I started working on a small mocking framework. It has now progressed far enough to handle the most common mocking tasks. Below I pasted the output of the integration tests for CLR interop. when isolating CLR interfaces - should work without expectations - should work with an expectation with any arguments - should work with an expectation getting different method call result - should work for an assertion on a specific argumen...