This leaves a bit to be desired, but is really the only way I could figure out how to accomplish this after teasing apart capybara/capybara webkit.
The main issue I have with it is the order in which things are output.. if you add console.log inside your first spec, it will behave as expected.. if you put another console.log inside your second spec, that output is visible before the dot from the first spec. I assume this is the nature of the speed at which capybara is running / reading from the socket, but it could lead to confusion.
This leaves a bit to be desired, but is really the only way I could figure out how to accomplish this after teasing apart capybara/capybara webkit.
The main issue I have with it is the order in which things are output.. if you add console.log inside your first spec, it will behave as expected.. if you put another console.log inside your second spec, that output is visible before the dot from the first spec. I assume this is the nature of the speed at which capybara is running / reading from the socket, but it could lead to confusion.