]> git.openstreetmap.org Git - rails.git/commitdiff
Rail 3 has renamed fieldWithErrors to field_with_errors
authorTom Hughes <tom@compton.nu>
Tue, 7 Dec 2010 21:37:04 +0000 (21:37 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 14 Nov 2011 09:42:47 +0000 (09:42 +0000)
public/stylesheets/common.css
test/functional/user_controller_test.rb
test/integration/user_creation_test.rb

index e256bb3f6a380a508fe8fd62cbbd155cb70d510b..974edac44ca28eca37effda7dfd7fdd4430bdc37 100644 (file)
@@ -932,7 +932,7 @@ p#contributorGuidance {
 
 /* Rules for highlighting fields with rails validation errors */
 
-.fieldWithErrors {
+.field_with_errors {
   padding: 2px;
   background-color: red;
   display: table;
index 750cfbaaf48e35fb099516e2f11f7c5300da1c3f..a069f20a26ccc9726301a6e013d0c90d09d9c37c 100644 (file)
@@ -59,7 +59,7 @@ class UserControllerTest < ActionController::TestCase
     assert_response :success                                                                       
     assert_template 'new'
     assert_select "div#errorExplanation"
-    assert_select "table#signupForm > tr > td > div[class=fieldWithErrors] > input#user_email"
+    assert_select "table#signupForm > tr > td > div[class=field_with_errors] > input#user_email"
   end
   
   # Check that the user account page will display and contains some relevant
index b0d0ecffdea38ded85c32057046fbd82a00c8f4b..79772d4447aa28ddf6131a8a7939b9e48036411c 100644 (file)
@@ -30,7 +30,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#signupForm > tr > td > div[class=fieldWithErrors] > input#user_email"
+      assert_select "table#signupForm > tr > td > div[class=field_with_errors] > input#user_email"
       assert_no_missing_translations
     end
   end
@@ -49,7 +49,7 @@ class UserCreationTest < ActionController::IntegrationTest
       assert_response :success
       assert_template 'user/new'
       assert_select "div#errorExplanation"
-      assert_select "table#signupForm > tr > td > div[class=fieldWithErrors] > input#user_display_name"
+      assert_select "table#signupForm > tr > td > div[class=field_with_errors] > input#user_display_name"
       assert_no_missing_translations
     end
   end