]> git.openstreetmap.org Git - rails.git/commitdiff
Fix tests to reflect changes to signup form.
authorTom Hughes <tom@compton.nu>
Wed, 21 Oct 2009 23:35:59 +0000 (23:35 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 21 Oct 2009 23:35:59 +0000 (23:35 +0000)
test/functional/user_controller_test.rb
test/integration/user_creation_test.rb

index 5c1d6f47eb2d4743a5b80a3a149ccd7d6c2e53a1..058cab0ecda2904b39c04e1e58fef5405010d33f 100644 (file)
@@ -59,7 +59,7 @@ class UserControllerTest < ActionController::TestCase
     assert_response :success                                                                       
     assert_template 'new'
     assert_select "div#errorExplanation"
-    assert_select "table#loginForm > tr > td > div[class=fieldWithErrors] > input#user_email"
+    assert_select "table#signupForm > tr > td > div[class=fieldWithErrors] > input#user_email"
   end
   
   # Check that the user account page will display and contains some relevant
index e4ed2329490d2b1d382f1fcce74b071110f780f6..361daa996e1f2c7e8ef1018ca22f21269cdaddf7 100644 (file)
@@ -26,7 +26,7 @@ class UserCreationTest < ActionController::IntegrationTest
       assert_template 'user/new'
       assert_equal response.headers['Content-Language'][0..1], localer.to_s[0..1] unless localer == :root
       assert_select "div#errorExplanation"
-      assert_select "table#loginForm > tr > td > div[class=fieldWithErrors] > input#user_email"
+      assert_select "table#signupForm > tr > td > div[class=fieldWithErrors] > input#user_email"
       assert_no_missing_translations
     end
   end
@@ -45,7 +45,7 @@ class UserCreationTest < ActionController::IntegrationTest
       assert_response :success
       assert_template 'user/new'
       assert_select "div#errorExplanation"
-      assert_select "table#loginForm > tr > td > div[class=fieldWithErrors] > input#user_display_name"
+      assert_select "table#signupForm > tr > td > div[class=fieldWithErrors] > input#user_display_name"
       assert_no_missing_translations
     end
   end