<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -6,9 +6,13 @@
   * Removed auto-require of webrat/rails when requiring webrat when RAILS_ENV is
     defined
   
-  In your env.rb file, ensure you have:
+  In your env.rb or test_helper.rb file, ensure you have something like:
   
-    require &quot;webrat/rails&quot;
+    require &quot;webrat&quot;
+    
+    Webrat.configure do |config|
+      config.mode = :rails
+    end
   
 * Major enhancements
 </diff>
      <filename>History.txt</filename>
    </modified>
    <modified>
      <diff>@@ -59,7 +59,7 @@ To install the latest code as a plugin: (_Note:_ This may be less stable than us
 
   script/plugin install git://github.com/brynary/webrat.git
 
-In your test_helper.rb, spec_helper.rb, or env.rb (for Cucumber) add:
+In your test_helper.rb or env.rb (for Cucumber) add:
 
   require &quot;webrat&quot;
   </diff>
      <filename>README.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -38,14 +38,10 @@ module Webrat
   # To use Webrat's Selenium support, you'll need the selenium-client gem installed.
   # Activate it with (for example, in your &lt;tt&gt;env.rb&lt;/tt&gt;):
   #
-  #   require &quot;webrat/selenium&quot;
-  # 
-  # Then, if you're using Cucumber, configure it to use a 
-  # &lt;tt&gt;Webrat::Selenium::Rails::World&lt;/tt&gt; as the scenario context by adding
-  # the following to &lt;tt&gt;env.rb&lt;/tt&gt;:
-  #
-  #   World do
-  #     Webrat::Selenium::Rails::World.new
+  #   require &quot;webrat&quot;
+  #   
+  #   Webrat.configure do |config|
+  #     config.mode = :selenium
   #   end
   #
   # == Dropping down to the selenium-client API
@@ -72,34 +68,26 @@ module Webrat
   # your Webrat::Selenium tests ignoring the concurrency issues that can plague in-browser
   # testing, so long as you're using the Webrat API.
   module Selenium
-    
-    module Rails #:nodoc:
-      class World &lt; ::ActionController::IntegrationTest
-        include Webrat::Selenium::Matchers
-        
-        def initialize #:nodoc:
-          @_result = Test::Unit::TestResult.new
-        end
-        
-        def response
-          webrat_session.response
-        end
-        
-        def wait_for(*args, &amp;block)
-          webrat_session.wait_for(*args, &amp;block)
-        end
+    module Methods
+      def response
+        webrat_session.response
+      end
+
+      def wait_for(*args, &amp;block)
+        webrat_session.wait_for(*args, &amp;block)
+      end
 
-        def save_and_open_screengrab
-          webrat_session.save_and_open_screengrab
-        end
+      def save_and_open_screengrab
+        webrat_session.save_and_open_screengrab
       end
     end
   end
-    
 end
 
 module ActionController #:nodoc:
   IntegrationTest.class_eval do
     include Webrat::Methods
+    include Webrat::Selenium::Methods
+    include Webrat::Selenium::Matchers
   end
 end</diff>
      <filename>lib/webrat/selenium.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2bf3c0aaa33cb7618556ed403c785032ace0fcbf</id>
    </parent>
  </parents>
  <author>
    <name>Bryan Helmkamp</name>
    <email>bryan@brynary.com</email>
  </author>
  <url>http://github.com/brynary/webrat/commit/362df8abf0f0930ee95fa0b8a708191afa57578e</url>
  <id>362df8abf0f0930ee95fa0b8a708191afa57578e</id>
  <committed-date>2008-12-27T12:57:01-08:00</committed-date>
  <authored-date>2008-12-27T11:05:19-08:00</authored-date>
  <message>Fix startup bug when using Webrat::Selenium with Test::Unit</message>
  <tree>ad4f68a92a9d4a22095c96169e231a1598182546</tree>
  <committer>
    <name>Bryan Helmkamp</name>
    <email>bryan@brynary.com</email>
  </committer>
</commit>
