Permalink
Browse files

remove useless assertions

  • Loading branch information...
1 parent de6a067 commit d7d379967a7bc6b2e562d271c673c3e142294224 @tenderlove tenderlove committed Apr 30, 2012
Showing with 3 additions and 10 deletions.
  1. +3 −10 activerecord/test/cases/base_test.rb
@@ -125,20 +125,13 @@ def test_primary_key_with_no_id
unless current_adapter?(:PostgreSQLAdapter,:OracleAdapter,:SQLServerAdapter)
def test_limit_with_comma
- assert_nothing_raised do
- Topic.limit("1,2").all
- end
+ assert Topic.limit("1,2").all
end
end
def test_limit_without_comma
- assert_nothing_raised do
- assert_equal 1, Topic.limit("1").all.length
- end
-
- assert_nothing_raised do
- assert_equal 1, Topic.limit(1).all.length
- end
+ assert_equal 1, Topic.limit("1").all.length
+ assert_equal 1, Topic.limit(1).all.length
end
def test_invalid_limit

0 comments on commit d7d3799

Please sign in to comment.