Merge pull request #52324 from nisusam/fix_test_typo
Fix typo from tests [ci skip]
This commit is contained in:
commit
98f744a00d
@ -444,7 +444,7 @@ class ::SpecialReply < ::Reply
|
||||
assert_not Car.counter_cache_column?("cars_count")
|
||||
end
|
||||
|
||||
test "inactive conter cache" do
|
||||
test "inactive counter cache" do
|
||||
car = Car.new
|
||||
car.bulbs = [Bulb.new, Bulb.new]
|
||||
car.save!
|
||||
@ -461,7 +461,7 @@ class ::SpecialReply < ::Reply
|
||||
end
|
||||
end
|
||||
|
||||
test "active conter cache" do
|
||||
test "active counter cache" do
|
||||
car = Car.new
|
||||
car.tyres = [Tyre.new, Tyre.new]
|
||||
car.save!
|
||||
|
@ -1156,9 +1156,9 @@ def test_implicit_order_column_prepends_query_constraints
|
||||
ClothingItem.implicit_order_column = "description"
|
||||
quoted_type = Regexp.escape(c.quote_table_name("clothing_items.clothing_type"))
|
||||
quoted_color = Regexp.escape(c.quote_table_name("clothing_items.color"))
|
||||
quoted_descrption = Regexp.escape(c.quote_table_name("clothing_items.description"))
|
||||
quoted_description = Regexp.escape(c.quote_table_name("clothing_items.description"))
|
||||
|
||||
assert_queries_match(/ORDER BY #{quoted_descrption} ASC, #{quoted_type} ASC, #{quoted_color} ASC LIMIT/i) do
|
||||
assert_queries_match(/ORDER BY #{quoted_description} ASC, #{quoted_type} ASC, #{quoted_color} ASC LIMIT/i) do
|
||||
assert_kind_of ClothingItem, ClothingItem.first
|
||||
end
|
||||
ensure
|
||||
|
Loading…
Reference in New Issue
Block a user