Fix typo from tests [ci skip]
This commit is contained in:
parent
6903ac45e8
commit
bb33c5c902
@ -444,7 +444,7 @@ class ::SpecialReply < ::Reply
|
|||||||
assert_not Car.counter_cache_column?("cars_count")
|
assert_not Car.counter_cache_column?("cars_count")
|
||||||
end
|
end
|
||||||
|
|
||||||
test "inactive conter cache" do
|
test "inactive counter cache" do
|
||||||
car = Car.new
|
car = Car.new
|
||||||
car.bulbs = [Bulb.new, Bulb.new]
|
car.bulbs = [Bulb.new, Bulb.new]
|
||||||
car.save!
|
car.save!
|
||||||
@ -461,7 +461,7 @@ class ::SpecialReply < ::Reply
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
test "active conter cache" do
|
test "active counter cache" do
|
||||||
car = Car.new
|
car = Car.new
|
||||||
car.tyres = [Tyre.new, Tyre.new]
|
car.tyres = [Tyre.new, Tyre.new]
|
||||||
car.save!
|
car.save!
|
||||||
|
@ -1156,9 +1156,9 @@ def test_implicit_order_column_prepends_query_constraints
|
|||||||
ClothingItem.implicit_order_column = "description"
|
ClothingItem.implicit_order_column = "description"
|
||||||
quoted_type = Regexp.escape(c.quote_table_name("clothing_items.clothing_type"))
|
quoted_type = Regexp.escape(c.quote_table_name("clothing_items.clothing_type"))
|
||||||
quoted_color = Regexp.escape(c.quote_table_name("clothing_items.color"))
|
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
|
assert_kind_of ClothingItem, ClothingItem.first
|
||||||
end
|
end
|
||||||
ensure
|
ensure
|
||||||
|
Loading…
Reference in New Issue
Block a user