From 1b44e0ba0e4b3bb5284dfdcc374fa2f7fd515bab Mon Sep 17 00:00:00 2001 From: Jo Liss Date: Thu, 14 Apr 2011 15:53:58 +0200 Subject: [PATCH] added documentation on driver switching with Test::Unit --- README.rdoc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.rdoc b/README.rdoc index 7019567b..6495fc28 100644 --- a/README.rdoc +++ b/README.rdoc @@ -149,6 +149,10 @@ whatever test class you are using. For example, if your classes derive from include Capybara::DSL end +Test::Unit does not support selecting the driver through test metadata, but you +can switch the driver for specific classes using the setup and +teardown methods. See the section "Selecting the Driver". + == Using Capybara with Ruby on Rails If you are using the Rails framework, add this line to automatically configure @@ -183,8 +187,8 @@ tests that require a JavaScript-capable driver using :js => true or :selenium driver. You can change this by setting Capybara.javascript_driver. -You can also change the driver temporarily (typically in the Before and After -blocks): +You can also change the driver temporarily (typically in the Before/setup and +After/teardown blocks): Capybara.current_driver = :culerity # temporarily select different driver ... tests ...