<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>spec/integration/rails/app/controllers/webrat_controller.rb</filename>
    </added>
    <added>
      <filename>spec/integration/rails/app/views/webrat/form.html.erb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,43 +1,6 @@
 ActionController::Routing::Routes.draw do |map|
-  # The priority is based upon order of creation: first created -&gt; highest priority.
-
-  # Sample of regular route:
-  #   map.connect 'products/:id', :controller =&gt; 'catalog', :action =&gt; 'view'
-  # Keep in mind you can assign values other than :controller and :action
-
-  # Sample of named route:
-  #   map.purchase 'products/:id/purchase', :controller =&gt; 'catalog', :action =&gt; 'purchase'
-  # This route can be invoked with purchase_url(:id =&gt; product.id)
-
-  # Sample resource route (maps HTTP verbs to controller actions automatically):
-  #   map.resources :products
-
-  # Sample resource route with options:
-  #   map.resources :products, :member =&gt; { :short =&gt; :get, :toggle =&gt; :post }, :collection =&gt; { :sold =&gt; :get }
-
-  # Sample resource route with sub-resources:
-  #   map.resources :products, :has_many =&gt; [ :comments, :sales ], :has_one =&gt; :seller
-  
-  # Sample resource route with more complex sub-resources
-  #   map.resources :products do |products|
-  #     products.resources :comments
-  #     products.resources :sales, :collection =&gt; { :recent =&gt; :get }
-  #   end
-
-  # Sample resource route within a namespace:
-  #   map.namespace :admin do |admin|
-  #     # Directs /admin/products/* to Admin::ProductsController (app/controllers/admin/products_controller.rb)
-  #     admin.resources :products
-  #   end
-
-  # You can have the root of your site routed with map.root -- just remember to delete public/index.html.
-  # map.root :controller =&gt; &quot;welcome&quot;
-
-  # See how all your routes lay out with &quot;rake routes&quot;
-
-  # Install the default routes as the lowest priority.
-  # Note: These default routes make all actions in every controller accessible via GET requests. You should
-  # consider removing the them or commenting them out if you're using named routes and resources.
-  map.connect ':controller/:action/:id'
-  map.connect ':controller/:action/:id.:format'
+  map.with_options :controller =&gt; &quot;webrat&quot; do |webrat|
+    webrat.submit &quot;/submit&quot;,  :action =&gt; &quot;submit&quot;
+    webrat.root               :action =&gt; &quot;form&quot;
+  end
 end</diff>
      <filename>spec/integration/rails/config/routes.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,17 @@
 require 'test_helper'
 
 class WebratTest &lt; ActionController::IntegrationTest
-  test &quot;should pass&quot; do
-    assert true
+  test &quot;should visit pages&quot; do
+    visit root_path
+    assert_tag &quot;Webrat Form&quot;
+    assert response.body.include?(&quot;Webrat Form&quot;)
+  end
+  
+  test &quot;should submit forms&quot; do
+    visit root_path
+    fill_in &quot;Text field&quot;, :with =&gt; &quot;Hello&quot;
+    check &quot;TOS&quot;
+    select &quot;January&quot;
+    click_button &quot;Test&quot;
   end
 end</diff>
      <filename>spec/integration/rails/test/integration/webrat_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,38 +1,21 @@
 ENV[&quot;RAILS_ENV&quot;] = &quot;test&quot;
 require File.expand_path(File.dirname(__FILE__) + &quot;/../config/environment&quot;)
 require 'test_help'
+require &quot;redgreen&quot;
 
-class Test::Unit::TestCase
-  # Transactional fixtures accelerate your tests by wrapping each test method
-  # in a transaction that's rolled back on completion.  This ensures that the
-  # test database remains unchanged so your fixtures don't have to be reloaded
-  # between every test method.  Fewer database queries means faster tests.
-  #
-  # Read Mike Clark's excellent walkthrough at
-  #   http://clarkware.com/cgi/blosxom/2005/10/24#Rails10FastTesting
-  #
-  # Every Active Record database supports transactions except MyISAM tables
-  # in MySQL.  Turn off transactional fixtures in this case; however, if you
-  # don't care one way or the other, switching from MyISAM to InnoDB tables
-  # is recommended.
-  #
-  # The only drawback to using transactional fixtures is when you actually 
-  # need to test transactions.  Since your test is bracketed by a transaction,
-  # any transactions started in your code will be automatically rolled back.
-  self.use_transactional_fixtures = true
+require &quot;webrat&quot;
 
-  # Instantiated fixtures are slow, but give you @david where otherwise you
-  # would need people(:david).  If you don't want to migrate your existing
-  # test cases which use the @david style and don't mind the speed hit (each
-  # instantiated fixtures translates to a database query per test method),
-  # then set this back to true.
-  self.use_instantiated_fixtures  = false
-
-  # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
-  #
-  # Note: You'll currently still have to declare fixtures explicitly in integration tests
-  # -- they do not yet inherit this setting
-  fixtures :all
+Webrat.configure do |config|
+  config.mode = :rails
+end
 
-  # Add more helper methods to be used by all tests here...
+ActionController::Base.class_eval do
+  def perform_action
+    perform_action_without_rescue
+  end
 end
+Dispatcher.class_eval do
+  def self.failsafe_response(output, status, exception = nil)
+    raise exception
+  end
+end
\ No newline at end of file</diff>
      <filename>spec/integration/rails/test/test_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>39e0200608ea9fc6b6e5f015b2b1592da8154c85</id>
    </parent>
  </parents>
  <author>
    <name>Bryan Helmkamp</name>
    <email>bryan@brynary.com</email>
  </author>
  <url>http://github.com/brynary/webrat/commit/add38820e58cba6a7e1ee62155c29480a9d1d913</url>
  <id>add38820e58cba6a7e1ee62155c29480a9d1d913</id>
  <committed-date>2008-12-28T22:30:26-08:00</committed-date>
  <authored-date>2008-12-28T22:30:26-08:00</authored-date>
  <message>Adding two tests for Rails integration</message>
  <tree>6ce4514085d58fd3de6220a4018b532d923e47f0</tree>
  <committer>
    <name>Bryan Helmkamp</name>
    <email>bryan@brynary.com</email>
  </committer>
</commit>
