On Wed, Feb 20, 2008 at 1:02 AM, Jarkko Laine <[EMAIL PROTECTED]> wrote:
>
>  On 19.2.2008, at 20.45, James Deville wrote:
>
>  > I set RAILS_ENV in my stories/helper.rb file. That might be a good
>  > solution.
>  >
>  >
>
>  Using Webrat for 100% of my stories (and running autotest) and loving
>  it. I also have the env set in stories/helper.rb, but I'm not sure
>  whether it was there from the beginning (I just copied it from some of
>  the early posts about stories).
>
>  //jarkko
>


It is set in stories/helper.rb, but not working. ./script/generate
rspec creates a file with:
ENV['RAILS_ENV']="test"

which is deprecated  It should be:
RAILS_ENV="test"

Changed that and it all worked fine.

Ed




>  --
>  Jarkko Laine
>  http://jlaine.net
>  http://dotherightthing.com
>  http://www.railsecommerce.com
>  http://odesign.fi
>
>
>
> _______________________________________________
>  rspec-users mailing list
>  rspec-users@rubyforge.org
>  http://rubyforge.org/mailman/listinfo/rspec-users
>



-- 
Ed Howland
http://greenprogrammer.blogspot.com
"The information transmitted is intended only for the person or entity
to which it is addressed and may contain proprietary, confidential
and/or legally privileged material. Any review, retransmission,
dissemination or other use of, or taking of any action in reliance
upon, this information by persons or entities other than the intended
recipient is prohibited. If you received this in error, please contact
the sender and delete the material from all computers."
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to