mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #41979 from jbampton/fix-grammar-and-spelling
chore: fix grammar and spelling
This commit is contained in:
commit
be22eab1d0
5 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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("<a href='almost'>on my mind</a>\n<A href='almost'>all day long</A>")
|
||||
assert_equal "Magic", strip_links("<a href='http://www.rubyonrails.com/'>Mag<a href='http://www.ruby-lang.org/'>ic")
|
||||
assert_equal "My mind\nall <b>day</b> long", strip_links("<a href='almost'>My mind</a>\n<A href='almost'>all <b>day</b> long</A>")
|
||||
|
@ -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("<p>This <u>is<u> a <a href='test.html'><strong>test</strong></a>.</p>"))
|
||||
assert_equal "This has a here.", strip_tags("This has a <!-- comment --> here.")
|
||||
assert_equal("Jekyll & Hyde", strip_tags("Jekyll & Hyde"))
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue