Topic: Unit testing without a database
I've been trying to figure out how to do this for days now, so excuse me if I missed something that already answers this.
I've got a rails application that I'm developing and it doesn't have or need a database. I'm working with Ruby 1.8.7 p249 and Rails 2.3.2.
I've uncommented the line in environment.rb that is supposed to work for disabling the database:
config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
When I try to run:
I get the following error:
I've tried various things that I've read online but none of them seem to work.
This includes commenting out "config.whiny_nils = true" in the test.rb in environments.
I've followed the instructions in this document:
But I really think that it's for a very old version of Rails.
I've looked through test_help.rb in rails, and I'm wondering if ActiveRecord is still being defined despite me removing it from the frameworks.
I think I've got a pretty good handle on ruby in general, but I don't particularly understand exactly how the whole rake system works.
At any rate, any help would be greatly appreciated, thanks.
Also, I can't post my code but I'll do my best to answer any follow up questions.
Thanks in advance.