Permalink
Browse files

Reset the primary key for other tests

  • Loading branch information...
1 parent 697e346 commit 2d211c459d8274f13f7a0f84d48c3d61bff49aee @pixeltrix pixeltrix committed Apr 24, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 activerecord/test/cases/finder_test.rb
@@ -833,6 +833,8 @@ def test_find_one_message_with_custom_primary_key
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

0 comments on commit 2d211c4

Please sign in to comment.