On Wed, Mar 25, 2009 at 6:58 PM, Mark Wilden <[email protected]> wrote: > On Wed, Mar 25, 2009 at 2:49 PM, Tadatoshi Takahashi > <[email protected]> wrote: >> Stephen Eley wrote: >>> On Wed, Mar 25, 2009 at 3:29 PM, Tadatoshi Takahashi >>> <[email protected]> wrote: >>>> >>>> P.S. >>>> It seems that autospec is run against test database and that "rake spec" >>>> is run against development database. >> >> Is there any other place where that RAILS_ENV is getting set? > > Check the rakefiles? Could someone have "improved" one? It happened to me.
You can also change spec_helper.rb to force the test environment with: ENV["RAILS_ENV"] = 'test' That's what it used to do but somebody complained that it shouldn't force an environment :) Cheers, David > > ///ark > _______________________________________________ > rspec-users mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/rspec-users > _______________________________________________ rspec-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/rspec-users
