Is is possible to run capybara with nginx and passenger? instead or webrick? Capybara is installed with cucumber in a rails app.
Is is possible to run capybara with nginx and passenger? instead or webrick? Capybara
Share
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.
It is easy – the only thing you have to do is to switch your mind – neither capybara nor cucumber are not tied to local environment you can test application that is located in internet and it will not care about it – you can even test google.com if you want.
For your particular problem you’ll have to set
You can easily control restarting of your application using cucumber hooks, you can configure it to restart before each test or before test suite. (See cucumber wiki) Within hook you’ll have to issue
FileUtils.touch tmp/restart.txtcommand. The same with database – you can manually setup hook to truncate it whenever it is needed (See database_cleaner gem)