I am using capybara and cucumber in my rails3 application. Everything is working just fine. However I don't understand how tests are working.
Let's say that I have a standard cucumber feature test. I am not using @selenium etc. It is a plain vanilla test. Now when I run
bundle exec cucumber
does that rails server start on a port? If yes then what's the port number? Also in the plain-vanilla case capybara uses rack-test. However rack-test is not responsible to running the server. So I am all confused how the whole thing works. What role cucumber is playing. What job rack-test is doing and what capybara is doing.
If you have links to articles then please share with me. I really want to know how things are working together.