aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/pk_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/pk_test.rb')
-rw-r--r--activerecord/test/pk_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/pk_test.rb b/activerecord/test/pk_test.rb
index 13adc7eb76..f9cfd6f293 100644
--- a/activerecord/test/pk_test.rb
+++ b/activerecord/test/pk_test.rb
@@ -24,6 +24,7 @@ class PrimaryKeysTest < Test::Unit::TestCase
end
def test_customized_primary_key_auto_assigns_on_save
+ Keyboard.delete_all
keyboard = Keyboard.new(:name => 'HHKB')
assert_nothing_raised { keyboard.save! }
assert_equal keyboard.id, Keyboard.find_by_name('HHKB').id