phorsfall + tdd   15

Using and Testing ActiveRecord/Rails Observers | upstream agile - software
You can disable the observers by stubbing the notify event in the model.
Using mocha it would be something like this to disable all notifications to the User model:

User.any_instance.stubs(:notify)
ruby  rails  testing  observers  tdd 
june 2009 by phorsfall
Get your Rails tests results via Growl notifications - redemption in a blog
With the latest ZenTest (3.5.1), the results property has been changed. I’ve updated the code to reflect the required change (basically, autotest.results.last is used instead.
mac  rails  growl  autotest  ruby  tdd 
october 2007 by phorsfall

Copy this bookmark:



description:


tags: