We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2998672 + 5b28e42 commit bfbf696Copy full SHA for bfbf696
activerecord/test/cases/calculations_test.rb
@@ -169,14 +169,14 @@ def test_should_limit_calculation_with_offset
169
end
170
171
def test_limit_should_apply_before_count
172
- accounts = Account.limit(4)
+ accounts = Account.order(:id).limit(4)
173
174
assert_equal 3, accounts.count(:firm_id)
175
assert_equal 3, accounts.select(:firm_id).count
176
177
178
def test_limit_should_apply_before_count_arel_attribute
179
180
181
firm_id_attribute = Account.arel_table[:firm_id]
182
assert_equal 3, accounts.count(firm_id_attribute)
0 commit comments