1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

chore: fix spelling

This commit is contained in:
John Bampton 2021-03-07 18:09:45 +10:00
parent ddbf01c52e
commit abcb5f5050
5 changed files with 6 additions and 6 deletions

View file

@ -161,7 +161,7 @@ module ActiveRecord
# set to +nil+ which will not run queries in the background. Applications must configure
# a thread pool executor to use this feature. Options are:
#
# * nil - Does not initalize a thread pool executor. Any async calls will be
# * nil - Does not initialize a thread pool executor. Any async calls will be
# run in the foreground.
# * :global_thread_pool - Initializes a single +Concurrent::ThreadPoolExecutor+
# that uses the +async_query_concurrency+ for the +max_threads+ value.

View file

@ -430,14 +430,14 @@ class AttributeMethodsTest < ActiveRecord::TestCase
assert_equal "a", topic[:title]
end
test "read overriden attribute with predicate respects override" do
test "read overridden attribute with predicate respects override" do
topic = Topic.new
topic.approved = true
def topic.approved; false; end
assert_not topic.approved?, "overriden approved should be false"
assert_not topic.approved?, "overridden approved should be false"
end
test "string attribute predicate" do

View file

@ -47,7 +47,7 @@ module ActiveRecord
assert_equal 1, config.max_threads
end
def test_max_queue_is_pool_multipled_by_4
def test_max_queue_is_pool_multiplied_by_4
config = HashConfig.new("default_env", "primary", {})
assert_equal 5, config.max_threads
assert_equal config.max_threads * 4, config.max_queue

View file

@ -102,7 +102,7 @@ class NumericalityValidationTest < ActiveRecord::TestCase
if RUBY_VERSION > "3.0.0"
# BigDecimal's to_d behavior changed in BigDecimal 3.0.1, see https://github.com/ruby/bigdecimal/issues/70
# TOOD: replace this with a check against BigDecimal::VERSION
# TODO: replace this with a check against BigDecimal::VERSION
assert_not_predicate subject, :valid?
else
assert_predicate subject, :valid?

View file

@ -2776,7 +2776,7 @@ module ApplicationTests
assert_equal "action-text-attachment", ActionText::Attachment.tag_name
end
test "action_text.config.attachment_tag_name is can be overriden" do
test "action_text.config.attachment_tag_name is can be overridden" do
add_to_config "config.action_text.attachment_tag_name = 'link'"
app "development"