the codemonky

ramblings, musing and code snippets from shawn veader
Apr 11
Permalink

silencing deprecations

OK, so if you’re stuck in Rails 1.2.X land like I am, you’re probably tired of seeing all the deprecation warnings when you run your test suite. (Yes, I know pagination is going away but someone might severly punish me for will_paginate at the moment.)

 Add this to your test/test_helper.rb

 

 ActiveSupport::Deprecation.silenced= true