]> git.openstreetmap.org Git - rails.git/blobdiff - test/functional/user_controller_test.rb
Fix up user creation tests to handle cookie check
[rails.git] / test / functional / user_controller_test.rb
index 17642b14998ebe1cc24f920c65e09c906fe2a55f..578f477f6993777cf12eab2464706eb109b5b439 100644 (file)
@@ -190,8 +190,12 @@ class UserControllerTest < ActionController::TestCase
   # The user creation page loads
   def test_user_create_view
     get :new
   # The user creation page loads
   def test_user_create_view
     get :new
+    assert_response :redirect
+    assert_redirected_to user_new_path(:cookie_test => "true")
+
+    get :new, { :cookie_test => "true" }, { :cookie_test => true }
     assert_response :success
     assert_response :success
-    
+
     assert_select "html", :count => 1 do
       assert_select "head", :count => 1 do
         assert_select "title", :text => /Create account/, :count => 1
     assert_select "html", :count => 1 do
       assert_select "head", :count => 1 do
         assert_select "title", :text => /Create account/, :count => 1