[groonga-commit:4193] ranguba/ranguba [master] fix form location.

null+ranguba at clear-code.com null+ranguba at clear-code.com
Tue Jan 10 09:16:52 EST 2012


Kouhei Sutou	2012-01-10 23:16:52 +0900 (Tue, 10 Jan 2012)

  New Revision: 5c62d50b21582ca71c519c295d2cd1d7a3f50400

  Log:
    fix form location.

  Modified files:
    test/integration/search_test.rb

  Modified: test/integration/search_test.rb (+8 -4)
===================================================================
--- test/integration/search_test.rb    2012-01-10 23:15:45 +0900 (fc9842b)
+++ test/integration/search_test.rb    2012-01-10 23:16:52 +0900 (60d8731)
@@ -313,8 +313,10 @@ class SearchTest < ActionDispatch::IntegrationTest
   def test_search_after_drilldown
     test_drilldown
 
-    fill_in "search_request_query", :with => "entry"
-    click_link_or_button "Search"
+    within("div.search_form") do
+      fill_in "query", :with => "entry"
+      click_link_or_button "Search"
+    end
 
     assert_found :total_count => 1,
                  :entries_count => 1,
@@ -368,8 +370,10 @@ class SearchTest < ActionDispatch::IntegrationTest
 
   def test_search_with_query_including_question
     assert_visit "/search/"
-    fill_in "search_request_query", :with => "unknown type?"
-    click_link_or_button "Search"
+    within("div.search_form") do
+      fill_in "query", :with => "unknown type?"
+      click_link_or_button "Search"
+    end
 
     assert_equal "/search/query/unknown%20type%3F", current_path
     assert_found :total_count => 1,



More information about the groonga-commit mailing list