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:
parent
a7fd564ab1
commit
1a99337180
1 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue