Skip to content

Commit 762813b

Browse files
authored
Merge pull request rails#55329 from rails/fxn/american-english
British English -> American English
2 parents 611f231 + 936c11e commit 762813b

File tree

15 files changed

+19
-19
lines changed

15 files changed

+19
-19
lines changed

actionpack/test/controller/routing_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ def test_named_route_with_nested_controller
495495
assert_equal("http://test.host/admin/user", setup_for_named_route.users_url)
496496
end
497497

498-
def test_optimised_named_route_with_host
498+
def test_optimized_named_route_with_host
499499
rs.draw do
500500
get "page" => "content#show_page", :as => "pages", :host => "foo.com"
501501
end

actionpack/test/dispatch/routing_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5063,7 +5063,7 @@ def app
50635063
APP
50645064
end
50655065

5066-
def test_paths_with_partial_dynamic_segments_are_recognised
5066+
def test_paths_with_partial_dynamic_segments_are_recognized
50675067
get "/david-bowie/changes-song"
50685068
assert_equal 200, response.status
50695069
assert_params artist: "david-bowie", song: "changes"
@@ -5204,7 +5204,7 @@ def app
52045204
APP
52055205
end
52065206

5207-
def test_paths_with_partial_dynamic_segments_are_recognised
5207+
def test_paths_with_partial_dynamic_segments_are_recognized
52085208
get "/test_internal/123"
52095209
assert_equal 200, response.status
52105210

activejob/test/support/do_not_perform_enqueued_jobs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module DoNotPerformEnqueuedJobs
66
included do
77
setup do
88
# /rails/activejob/test/adapters/test.rb sets these configs to true, but
9-
# in this specific case we want to test enqueueing behaviour.
9+
# in this specific case we want to test enqueueing behavior.
1010
@perform_enqueued_jobs = queue_adapter.perform_enqueued_jobs
1111
@perform_enqueued_at_jobs = queue_adapter.perform_enqueued_at_jobs
1212
queue_adapter.perform_enqueued_jobs = queue_adapter.perform_enqueued_at_jobs = false

activerecord/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@
416416
`WITH RECURSIVE` or `DISTINCT` statements. Those were never supported and were ignored
417417
when generating the SQL query.
418418
419-
An error will be raised in a future Rails release. This behaviour will be consistent
419+
An error will be raised in a future Rails release. This behavior will be consistent
420420
with `delete_all` which currently raises an error for unsupported statements.
421421
422422
*Edouard Chin*

activerecord/lib/active_record/inheritance.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def finder_needs_type_condition? # :nodoc:
9797
# Returns the first class in the inheritance hierarchy that descends from either an
9898
# abstract class or from <tt>ActiveRecord::Base</tt>.
9999
#
100-
# Consider the following behaviour:
100+
# Consider the following behavior:
101101
#
102102
# class ApplicationRecord < ActiveRecord::Base
103103
# self.abstract_class = true

activerecord/test/cases/autosave_association_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1802,7 +1802,7 @@ def test_mark_for_destruction_is_ignored_without_autosave_true
18021802
assert_not_predicate ship, :valid?
18031803
end
18041804

1805-
def test_recognises_inverse_polymorphic_association_changes_with_same_foreign_key
1805+
def test_recognizes_inverse_polymorphic_association_changes_with_same_foreign_key
18061806
chef_a = chefs(:gordon_ramsay)
18071807
chef_b = chefs(:marco_pierre_white)
18081808

activerecord/test/cases/relations_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1366,13 +1366,13 @@ def test_create_with_array
13661366
def test_create_with_block
13671367
sparrow = Bird.create do |bird|
13681368
bird.name = "sparrow"
1369-
bird.color = "grey"
1369+
bird.color = "gray"
13701370
end
13711371

13721372
assert_kind_of Bird, sparrow
13731373
assert_predicate sparrow, :persisted?
13741374
assert_equal "sparrow", sparrow.name
1375-
assert_equal "grey", sparrow.color
1375+
assert_equal "gray", sparrow.color
13761376
end
13771377

13781378
def test_create_bang_with_array

activesupport/lib/active_support/core_ext/date_and_time/compatibility.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module Compatibility
1717
singleton_class.silence_redefinition_of_method :preserve_timezone
1818

1919
#--
20-
# This re-implements the behaviour of the mattr_reader, instead
20+
# This re-implements the behavior of the mattr_reader, instead
2121
# of prepending on to it, to avoid overcomplicating a module that
2222
# is in turn included in several places. This will all go away in
2323
# Rails 8.0 anyway.

guides/source/active_job_basics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,9 +427,9 @@ enables a powerful yet sharp tool: taking advantage of transactional integrity
427427
to ensure some action in your app is not committed unless your job is also committed
428428
and vice versa, and ensuring that your job won't be enqueued until the transaction
429429
within which you're enqueuing it is committed. This can be very powerful and useful,
430-
but it can also backfire if you base some of your logic on this behaviour,
430+
but it can also backfire if you base some of your logic on this behavior,
431431
and in the future, you move to another active job backend, or if you simply move
432-
Solid Queue to its own database, and suddenly the behaviour changes under you.
432+
Solid Queue to its own database, and suddenly the behavior changes under you.
433433

434434
Because this can be quite tricky and many people shouldn't need to worry about it,
435435
by default Solid Queue is configured in a different database as the main app.

guides/source/active_record_composite_primary_keys.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ class BooksController < ApplicationController
268268
id = params.extract_value(:id)
269269
# Find the book using the composite ID.
270270
@book = Book.find(id)
271-
# use the default rendering behaviour to render the show view.
271+
# use the default rendering behavior to render the show view.
272272
end
273273
end
274274
```

0 commit comments

Comments
 (0)