Is there a way to keep rspec from trying to recreate the test database on each test iteration? I am developing a reporting app and I want to test against the legacy read only data.
Rails 3.1.1
rspec-rails 2.7.0
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I thought I’d answer my own question in case it can help someone else.
I have given up trying to get rspec to use legacy, read only data, for testing. It appears this is “swimming against the tide” and is probably not considered to be the “Rails Way”. I suppose it would violate the theory that your tests should not be dependent on external data.
So I am using a sqllite db and creating data in the tests.