diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-12-26 03:10:55 +0530 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-12-26 03:10:55 +0530 |
commit | 1a993371805122cf50531b95651c6933d568080e (patch) | |
tree | cae2ddfc3c38340bb9ddf11a3e3c2a5f2e158de5 /activerecord/test/cases | |
parent | a7fd564ab197a376336ebfa8bceaf14553e7628f (diff) | |
download | rails-1a993371805122cf50531b95651c6933d568080e.tar.gz rails-1a993371805122cf50531b95651c6933d568080e.tar.bz2 rails-1a993371805122cf50531b95651c6933d568080e.zip |
No parentheses for assert_equal
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/relations_test.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/activerecord/test/cases/relations_test.rb b/activerecord/test/cases/relations_test.rb index 910b954c8c..769a920a8b 100644 --- a/activerecord/test/cases/relations_test.rb +++ b/activerecord/test/cases/relations_test.rb @@ -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 |