Skip to content
New issue

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

Issue with documentation- is the environment variable set in the in the wrong place in test examples? #741

Closed
ericdcobb opened this issue Jul 18, 2013 · 1 comment

Comments

@ericdcobb
Copy link

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.

@frodsan
Copy link

frodsan commented Aug 11, 2013

This can be closed.

@rkh rkh closed this as completed Aug 11, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants