Skip to content

Commit 5db3ed5

Browse files
committed
misc: fix spelling in Markdown and Ruby files
1 parent b132744 commit 5db3ed5

File tree

10 files changed

+16
-16
lines changed

10 files changed

+16
-16
lines changed

actionview/test/template/template_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ def test_template_translate_location_with_multiline_code_source
362362
assert_equal expected, new_template(source).translate_location(nil, spot)
363363
end
364364

365-
def test_template_translate_location_with_multibye_string_before_highlight
365+
def test_template_translate_location_with_multibyte_string_before_highlight
366366
highlight = "nope"
367367
# ensure the byte offset is enough to make us miss the highlight if wrong
368368
multibyte = String.new("\u{a5}\u{a5}\u{a5}\u{a5}\u{a5}\u{a5}\u{a5}", encoding: Encoding::UTF_8) # yen symbol

activejob/test/cases/test_helper_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2053,7 +2053,7 @@ def test_assert_performed_says_no_jobs_performed
20532053
assert_match(/No jobs were performed/, error.message)
20542054
end
20552055

2056-
def test_assert_performed_when_not_matching_the_class_shows_alteratives
2056+
def test_assert_performed_when_not_matching_the_class_shows_alternatives
20572057
ricardo = Person.new(9)
20582058
wilma = Person.new(11)
20592059
HelloJob.perform_later(ricardo)

activerecord/test/cases/adapters/sqlite3/sqlite3_adapter_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ def test_non_integer_column_returns_false_for_rowid
10771077
end
10781078
end
10791079

1080-
def test_mixed_case_integer_colum_returns_true_for_rowid
1080+
def test_mixed_case_integer_column_returns_true_for_rowid
10811081
with_example_table "id_mixed_case InTeGeR PRIMARY KEY" do
10821082
assert @conn.columns("ex").index_by(&:name)["id_mixed_case"].rowid
10831083
end

activerecord/test/cases/adapters/trilogy/trilogy_adapter_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ class TrilogyAdapterTest < ActiveRecord::TrilogyTestCase
253253
assert_includes payload, :type_casted_binds
254254
assert_equal [], payload[:type_casted_binds].is_a?(Proc) ? payload[:type_casted_binds].call : payload[:type_casted_binds]
255255

256-
# Rails does not include :stament_name for cached queries 🤷‍♂️
256+
# Rails does not include :statement_name for cached queries 🤷‍♂️
257257
assert_not_includes payload, :statement_name
258258

259259
assert_includes payload, :cached

activerecord/test/cases/persistence_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1680,7 +1680,7 @@ def test_child_keeps_parents_query_constraints
16801680
assert_uses_query_constraints_on_reload(used_clothing_item, ["clothing_type", "color"])
16811681
end
16821682

1683-
def test_child_keeps_parents_query_contraints_derived_from_composite_pk
1683+
def test_child_keeps_parents_query_constraints_derived_from_composite_pk
16841684
assert_equal(["author_id", "id"], Cpk::BestSeller.query_constraints_list)
16851685
end
16861686

activerecord/test/cases/reflection_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,13 +619,13 @@ def test_reflect_on_association_accepts_strings
619619
end
620620
end
621621

622-
def test_reflect_on_missing_source_assocation
622+
def test_reflect_on_missing_source_association
623623
assert_nothing_raised do
624624
assert_nil Hotel.reflect_on_association(:lost_items).source_reflection
625625
end
626626
end
627627

628-
def test_reflect_on_missing_source_assocation_raise_exception
628+
def test_reflect_on_missing_source_association_raise_exception
629629
assert_raises(ActiveRecord::HasManyThroughSourceAssociationNotFoundError) do
630630
Hotel.reflect_on_association(:lost_items).check_validity!
631631
end

activerecord/test/cases/relation/load_async_test.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ def test_reset
5252
def test_load_async_has_many_association
5353
post = Post.first
5454

55-
defered_comments = post.comments.load_async
56-
assert_predicate defered_comments, :scheduled?
55+
deferred_comments = post.comments.load_async
56+
assert_predicate deferred_comments, :scheduled?
5757

5858
events = []
5959
callback = -> (event) do
@@ -62,7 +62,7 @@ def test_load_async_has_many_association
6262

6363
wait_for_async_query
6464
ActiveSupport::Notifications.subscribed(callback, "sql.active_record") do
65-
defered_comments.to_a
65+
deferred_comments.to_a
6666
end
6767

6868
assert_equal [["Comment Load", true]], events.map { |e| [e.payload[:name], e.payload[:async]] }
@@ -72,8 +72,8 @@ def test_load_async_has_many_association
7272
def test_load_async_has_many_through_association
7373
post = Post.first
7474

75-
defered_categories = post.scategories.load_async
76-
assert_predicate defered_categories, :scheduled?
75+
deferred_categories = post.scategories.load_async
76+
assert_predicate deferred_categories, :scheduled?
7777

7878
events = []
7979
callback = -> (event) do
@@ -82,7 +82,7 @@ def test_load_async_has_many_through_association
8282

8383
wait_for_async_query
8484
ActiveSupport::Notifications.subscribed(callback, "sql.active_record") do
85-
defered_categories.to_a
85+
deferred_categories.to_a
8686
end
8787

8888
assert_equal [["Category Load", true]], events.map { |e| [e.payload[:name], e.payload[:async]] }

activerecord/test/cases/relation/with_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def test_multiple_with_calls
5151
assert_equal POSTS_WITH_TAGS_AND_COMMENTS, relation.order(:id).pluck(:id)
5252
end
5353

54-
def test_multiple_dupicate_with_calls
54+
def test_multiple_duplicate_with_calls
5555
posts_with_tags = Post.where("tags_count > 0")
5656
relation = Post
5757
.with(posts_with_tags: posts_with_tags, one_more_posts_with_tags: posts_with_tags)

activesupport/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
106106
*Martin Emde*
107107
108-
* Fix a bug in `ERB::Util.tokenize` that causes incorrect tokenization when ERB tags are preceeded by multibyte characters.
108+
* Fix a bug in `ERB::Util.tokenize` that causes incorrect tokenization when ERB tags are preceded by multibyte characters.
109109
110110
*Martin Emde*
111111

railties/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454
* Update `rails new --minimal` option
5555

56-
Extend the `--minimal` flag to exlcude recently added features:
56+
Extend the `--minimal` flag to exclude recently added features:
5757
`skip_brakeman`, `skip_ci`, `skip_docker`, `skip_kamal`, `skip_rubocop`, `skip_solid` and `skip_thruster`.
5858

5959
*eelcoj*

0 commit comments

Comments
 (0)