On Oct 29, 2007, at 9:04 AM, Jonathan Linowes wrote: > hi, > > When I run rake spec , it seems to be starting with my default > environment (development or production) and connects to that > database, before actually connecting to the test one and proceeding > with the tests. When I remove the development database, the specs > wont run. How do i initiate rspec to be test environment from the > start? I dont see this when i run using script/spec > > linoj >
Database config aside, it turns out the issue was my spec_helper.rb file contained: ENV["RAILS_ENV"] ||= "test" I changed it to ENV["RAILS_ENV"] = "test" --linoj _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users