i was trying to run tests for the sentry plugin and they failed when
using fixtures.
activerecord's fixtures.rb reads:
def setup_with_fixtures
return unless defined?(ActiveRecord::Base) &&
!ActiveRecord::Base.configurations.blank?
This quietly fails to setup fixtures, causing errors later and elsewhere
when you try to use a fixture. Not fun to track down. i got sentry's
tests to run by adding:
ActiveRecord::Base.configurations[:nothing] = true
if that works, why check for blank config? apparently none is necessary.
alternatively, if blank config is an error, shouldn't Rails raise
something instead of ignore it?
- Elliot Temple
www.curi.us
on 12.10.2007 05:55