How do I change the RAILS_ENV for rspec integration or remote specs?

Posted by Carlos Newton on Stack Overflow See other posts from Stack Overflow or by Carlos Newton
Published on 2010-03-23T21:19:20Z Indexed on 2010/03/23 21:23 UTC
Read the original article Hit count: 249

Filed under:

I would like to create a set of remote specs "specs/remote" that run with the RAILS_ENV = 'remote'. These specs need to use a different database than the model specs. I would make them integration specs if that was easiest.

Ultimately, what is the easiest way change the RAILS_ENV from test and run a group of specs?

© Stack Overflow or respective owner

Related posts about rspec