Closed matthijsgroen closed 11 years ago
I was thinking this might be a good idea. Thanks!
No problem. I wanted to make sure this would help so was field-testing this for a few days to make sure it would solve the problem
Strange, but from time to time my specs appears to be cached and only typing reload konacha
helps. Why is it happening? To be honest, I don't really know how to reproduce the bug: it just happens from time to time.
My guess is that there's some kind of caching happening in Capybara or its driver. @romanenko are you using the :webkit
or :poltergeist
driver?.
@alexgb I use :poltergeist
.
I have the same effect myself and an searching for a solution for months without success. We use the :webkit
driver. Your discovery may indicate it is an issue within Capybara itself.
Caching results still persists even when I use :webkit
driver.
For example, I start guard, and make changes in specs to fail them, but running succeeds. I type reload konacha
in guard console — they are still green. Only when I type exit
in guard console, then start it again — they fail.
I have a fix for the caching issue and compatibility issues with Konacha 3.0 that I hope to get up this weekend. Stay tuned.
\o/
Reset Capybara session before each run to clear cookies (Cucumber::Rails does this aswell)
and add a unique identifier to the url to prevent cached results
Had to add Timecop as development dependency to guarantee uniqueness