From 7669134d7dd1420abd093b0ba2bf785741fc4e4a Mon Sep 17 00:00:00 2001 From: Jonas Nicklas Date: Sat, 17 Jul 2010 13:21:23 +0200 Subject: [PATCH] Added note about time freezing in README --- README.rdoc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.rdoc b/README.rdoc index 6a39cfe6..cd08ca03 100644 --- a/README.rdoc +++ b/README.rdoc @@ -403,6 +403,13 @@ The same thing goes for within: * Access to Rails specific stuff (such as controller) is unavailable, since we're not using Rails' integration testing. +* Freezing time: It's common practice to mock out the Time so that features + that depend on the current Date work as expected. This can be problematic, + since Capybara's AJAX timing uses the system time, resulting in Capybara + never timing out and just hanging when a failure occurs. It's still possible to + use plugins which allow you to travel in time, rather than freeze time. + One such plugin is {Timecop}[http://github.com/jtrupiano/timecop]. + == License: (The MIT License)