From de3b207aa67acf6046b53818e249ab20aeb6ccb2 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Thu, 15 Apr 2021 16:57:01 +1000 Subject: [PATCH] chore: fix grammar and spelling --- actionview/test/template/output_safety_helper_test.rb | 4 ++-- actionview/test/template/sanitize_helper_test.rb | 4 ++-- actionview/test/ujs/public/test/data-remote.js | 2 +- actionview/test/ujs/public/vendor/jquery-2.2.0.js | 2 +- activejob/README.md | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/actionview/test/template/output_safety_helper_test.rb b/actionview/test/template/output_safety_helper_test.rb index b2c6ae99ed..eb2952fbce 100644 --- a/actionview/test/template/output_safety_helper_test.rb +++ b/actionview/test/template/output_safety_helper_test.rb @@ -36,7 +36,7 @@ class OutputSafetyHelperTest < ActionView::TestCase end test "safe_join should return the safe string separated by $, when second argument is not passed" do - default_delimeter = $, + default_delimiter = $, begin $, = nil @@ -49,7 +49,7 @@ class OutputSafetyHelperTest < ActionView::TestCase joined = safe_join(["a", "b"]) assert_equal "a|b", joined ensure - $, = default_delimeter + $, = default_delimiter end end diff --git a/actionview/test/template/sanitize_helper_test.rb b/actionview/test/template/sanitize_helper_test.rb index 4a2a21996b..4641fd1fdc 100644 --- a/actionview/test/template/sanitize_helper_test.rb +++ b/actionview/test/template/sanitize_helper_test.rb @@ -8,7 +8,7 @@ class SanitizeHelperTest < ActionView::TestCase tests ActionView::Helpers::SanitizeHelper def test_strip_links - assert_equal "Dont touch me", strip_links("Dont touch me") + assert_equal "Don't touch me", strip_links("Don't touch me") assert_equal "on my mind\nall day long", strip_links("on my mind\nall day long") assert_equal "Magic", strip_links("Magic") assert_equal "My mind\nall day long", strip_links("My mind\nall day long") @@ -26,7 +26,7 @@ class SanitizeHelperTest < ActionView::TestCase end def test_strip_tags - assert_equal("Dont touch me", strip_tags("Dont touch me")) + assert_equal("Don't touch me", strip_tags("Don't touch me")) assert_equal("This is a test.", strip_tags("

This is a test.

")) assert_equal "This has a here.", strip_tags("This has a here.") assert_equal("Jekyll & Hyde", strip_tags("Jekyll & Hyde")) diff --git a/actionview/test/ujs/public/test/data-remote.js b/actionview/test/ujs/public/test/data-remote.js index 4a265ce5dd..6ed0f27233 100644 --- a/actionview/test/ujs/public/test/data-remote.js +++ b/actionview/test/ujs/public/test/data-remote.js @@ -334,7 +334,7 @@ asyncTest('returning false in form\'s submit bindings in non-submit-bubbling bro }) if (!$.support.submitBubbles) { - // Must indrectly submit form via click to trigger jQuery's manual submit bubbling in IE + // Must indirectly submit form via click to trigger jQuery's manual submit bubbling in IE form.find('input[type=submit]').triggerNative('click') } else { form.triggerNative('submit') diff --git a/actionview/test/ujs/public/vendor/jquery-2.2.0.js b/actionview/test/ujs/public/vendor/jquery-2.2.0.js index 1e0ba99740..ce9a040b55 100644 --- a/actionview/test/ujs/public/vendor/jquery-2.2.0.js +++ b/actionview/test/ujs/public/vendor/jquery-2.2.0.js @@ -1082,7 +1082,7 @@ setDocument = Sizzle.setDocument = function( node ) { // Support: IE<10 // Check if getElementById returns elements by name - // The broken getElementById methods don't pick up programatically-set names, + // The broken getElementById methods don't pick up programmatically-set names, // so use a roundabout getElementsByName test support.getById = assert(function( div ) { docElem.appendChild( div ).id = expando; diff --git a/activejob/README.md b/activejob/README.md index 6bcf68d608..e1f1ece876 100644 --- a/activejob/README.md +++ b/activejob/README.md @@ -8,7 +8,7 @@ small units of work and run in parallel, really. It also serves as the backend for Action Mailer's #deliver_later functionality that makes it easy to turn any mailing into a job for running later. That's one of the most common jobs in a modern web application: sending emails outside -of the request-response cycle, so the user doesn't have to wait on it. +the request-response cycle, so the user doesn't have to wait on it. The main point is to ensure that all Rails apps will have a job infrastructure in place, even if it's in the form of an "immediate runner". We can then have