diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2013-04-24 15:00:14 +0100 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2013-04-24 15:07:39 +0100 |
commit | 2d211c459d8274f13f7a0f84d48c3d61bff49aee (patch) | |
tree | e689eeef9a9f02d5b53b0ff3f423dfeb1b361552 /activerecord | |
parent | 697e346cd2382af274a295567d90684d5054e4ca (diff) | |
download | rails-2d211c459d8274f13f7a0f84d48c3d61bff49aee.tar.gz rails-2d211c459d8274f13f7a0f84d48c3d61bff49aee.tar.bz2 rails-2d211c459d8274f13f7a0f84d48c3d61bff49aee.zip |
Reset the primary key for other tests
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/finder_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/cases/finder_test.rb b/activerecord/test/cases/finder_test.rb index e505fe9f18..0ff5be5b1f 100644 --- a/activerecord/test/cases/finder_test.rb +++ b/activerecord/test/cases/finder_test.rb @@ -833,6 +833,8 @@ class FinderTest < ActiveRecord::TestCase rescue ActiveRecord::RecordNotFound => e assert_equal 'Couldn\'t find Toy with name=Hello World!', e.message end + ensure + Toy.reset_primary_key end def test_finder_with_offset_string |