Re: [Rails-core] Plugin test fixtures

2010-05-30 Thread Jack Christensen
On 5/28/2010 11:05 PM, Michael Koziarski wrote: 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

Re: [Rails-core] Plugin test fixtures

2010-05-30 Thread Michael Koziarski
In a plugin we have to explicitly include ActiveRecord::TestFixtures to enable fixtures in ActiveSupport::TestCase. So my thinking is it should loudly fail instead of silently fail if it doesn't think ActiveRecord is setup. Now if I understand you correctly, you are saying that that would

[Rails-core] Plugin test fixtures

2010-05-25 Thread Jack Christensen
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