Tag: bugs

FFMpeg SWF File Conversion

April 18th, 2010, Comments Off

FFMpeg has multiple problems and bugs with writing out to SWF files, I run into a few of these at my day-job and wrote a patch for one of the problems and submitted it back to FFMpeg. It was a nice change to go back and do some C programming for a while.
Anyway, list of [...]

Mass Find/replace for Rails Tests

May 26th, 2009, Comments Off

After upgrading an old project to Rails 2.3.2,my tests were failing to run, bombing out with an error like:
./test/unit/my_model.rb:4: undefined method `fixtures’ for MyModelTest:Class (NoMethodError)
This was because in Rails 2.3.2, tests have to derive from ActiveSupport::TestCase, and not the old Test::Unit::TestCase.
A quick find and replace soon has us up and running again:
perl -pi -w -e [...]

Rails Plugin Tests Not Executed

May 7th, 2009, Comments Off

With Rails 2.3.2, if you create your own plugin using “script/generate plugin {pluginname}”, then enter the vendor/plugins/{pluginname} directory, and run “rake test”, your tests will not run.
The fix for this is to add the following line to your vendor/plugins/{pluginname}/test/test_helper.rb file:
require ‘test/unit’
… so that the top of the file now looks like this:
require ‘rubygems’
require ‘active_support’
require ‘active_support/test_case’
require [...]

Feed

http://www.mendable.com / bugs