]> git.openstreetmap.org Git - rails.git/commitdiff
Drop workaround to force UTF8 form upload in IE8
authorTom Hughes <tom@compton.nu>
Sat, 7 Oct 2023 10:57:54 +0000 (11:57 +0100)
committerTom Hughes <tom@compton.nu>
Sat, 7 Oct 2023 10:57:54 +0000 (11:57 +0100)
This has been disabled by default in rails for some time.

config/application.rb
test/controllers/diary_entries_controller_test.rb

index 7b492aea0afa1533c7905874ac996735a7a2e256..f440ed206d166ce65024fd61a7dfd01e3c967503 100644 (file)
@@ -19,10 +19,6 @@ module OpenStreetMap
     # Custom directories with classes and modules you want to be autoloadable.
     config.autoload_paths += %W[#{config.root}/lib]
 
-    # Force requests from old versions of IE (<= IE8) to be UTF-8 encoded.
-    # This has defaulted to false since rails 6.0
-    config.action_view.default_enforce_utf8 = true
-
     # Use SQL instead of Active Record's schema dumper when creating the database.
     # This is necessary if your schema can't be completely dumped by the schema dumper,
     # like if you have constraints or database-specific column types
index 0c1e655512f23c003898bfc040b0206e8d9b21ff..c8aaf64097464d8056719aecc4b8d6cde40ee175 100644 (file)
@@ -135,7 +135,7 @@ class DiaryEntriesControllerTest < ActionDispatch::IntegrationTest
         assert_select "input[name=commit][type=submit][value=Publish]", :count => 1
         assert_select "input[name=commit][type=submit][value=Edit]", :count => 1
         assert_select "input[name=commit][type=submit][value=Preview]", :count => 1
-        assert_select "input", :count => 7
+        assert_select "input", :count => 6
       end
     end
   end
@@ -294,7 +294,7 @@ class DiaryEntriesControllerTest < ActionDispatch::IntegrationTest
         assert_select "input[name=commit][type=submit][value=Update]", :count => 1
         assert_select "input[name=commit][type=submit][value=Edit]", :count => 1
         assert_select "input[name=commit][type=submit][value=Preview]", :count => 1
-        assert_select "input", :count => 8
+        assert_select "input", :count => 7
       end
     end