We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sorry, didn't know where to put this issue and whether I'm just being dense.
Tonight I was trying to add some tests to an existing sinatra app, using the instructions here:
http://www.sinatrarb.com/testing.html
The app uses mongoid, and it was using the "development" environment. After searching around, I found this SO question:
http://stackoverflow.com/questions/9376355/separate-sinatra-apps-test-database-from-development-database
Setting the environment variable BEFORE requiring sinatra (through require the application.rb file in test) fixed my issues.
The text was updated successfully, but these errors were encountered:
RACK_ENV=test
This can be closed.
Sorry, something went wrong.
No branches or pull requests
Sorry, didn't know where to put this issue and whether I'm just being dense.
Tonight I was trying to add some tests to an existing sinatra app, using the instructions here:
http://www.sinatrarb.com/testing.html
The app uses mongoid, and it was using the "development" environment. After searching around, I found this SO question:
http://stackoverflow.com/questions/9376355/separate-sinatra-apps-test-database-from-development-database
Setting the environment variable BEFORE requiring sinatra (through require the application.rb file in test) fixed my issues.
The text was updated successfully, but these errors were encountered: