Skip to content
Browse files

No parentheses for assert_equal

  • Loading branch information...
1 parent a7fd564 commit 1a993371805122cf50531b95651c6933d568080e @lifo lifo committed Dec 26, 2009
Showing with 6 additions and 6 deletions.
  1. +6 −6 activerecord/test/cases/relations_test.rb
View
12 activerecord/test/cases/relations_test.rb
@@ -32,19 +32,19 @@ def test_finding_with_order
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

0 comments on commit 1a99337

Please sign in to comment.
Something went wrong with that request. Please try again.