search for: already_connected_to_a_database

Displaying 1 result from an estimated 1 matches for "already_connected_to_a_database".

2010 May 26
3
Plugin test fixtures
Just spent a good bit of time trying to figure out why I couldn''t get fixtures to work in a plugin test. I was including ActiveRecord::TestFixtures into ActiveSupport::TestCase and trying to get fixtures to automatically reload for every test like regular Rails tests. The problem was in the first line of ActiveRecord::TestFixtures.setup_fixtures: return unless defined?(ActiveRecord)