1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

No parentheses for assert_equal

This commit is contained in:
Pratik Naik 2009-12-26 03:10:55 +05:30
parent a7fd564ab1
commit 1a99337180

View file

@ -32,19 +32,19 @@ class RelationTest < ActiveRecord::TestCase
def test_finding_with_order_and_take
entrants = Entrant.order("id ASC").limit(2).to_a
assert_equal(2, entrants.size)
assert_equal(entrants(:first).name, entrants.first.name)
assert_equal 2, entrants.size
assert_equal entrants(:first).name, entrants.first.name
end
def test_finding_with_order_limit_and_offset
entrants = Entrant.order("id ASC").limit(2).offset(1)
assert_equal(2, entrants.size)
assert_equal(entrants(:second).name, entrants.first.name)
assert_equal 2, entrants.size
assert_equal entrants(:second).name, entrants.first.name
entrants = Entrant.order("id ASC").limit(2).offset(2)
assert_equal(1, entrants.size)
assert_equal(entrants(:third).name, entrants.first.name)
assert_equal 1, entrants.size
assert_equal entrants(:third).name, entrants.first.name
end
def test_finding_with_group