[rspec-users] RSpec-rails 1.2.2: autospec passes but "rake spec" fails
dchelimsky at gmail.com
Fri Mar 27 08:36:12 EDT 2009
On Wed, Mar 25, 2009 at 6:58 PM, Mark Wilden <mark at mwilden.com> wrote:
> On Wed, Mar 25, 2009 at 2:49 PM, Tadatoshi Takahashi
> <lists at ruby-forum.com> wrote:
>> Stephen Eley wrote:
>>> On Wed, Mar 25, 2009 at 3:29 PM, Tadatoshi Takahashi
>>> <lists at ruby-forum.com> wrote:
>>>> 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 :)
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users