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 e256bb3..974edac 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 750cfba..a069f20 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 b0d0ecf..79772d4 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