提交 b13a00ed 编写于 作者: A Akshay

Fix semantics of test names for finish option in batches_test

- The change was added in #23099
上级 c60fb74d
......@@ -108,7 +108,7 @@ def test_find_in_batches_should_start_from_the_start_option
end
end
def test_find_in_batches_should_finish_the_end_option
def test_find_in_batches_should_end_at_the_finish_option
assert_queries(6) do
Post.find_in_batches(batch_size: 1, finish: 5) do |batch|
assert_kind_of Array, batch
......@@ -316,7 +316,7 @@ def test_in_batches_should_start_from_the_start_option
end
end
def test_in_batches_should_finish_the_end_option
def test_in_batches_should_end_at_the_finish_option
post = Post.order('id DESC').where('id <= ?', 5).first
assert_queries(7) do
relation = Post.in_batches(of: 1, finish: 5, load: true).reverse_each.first
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册