diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-12-19 11:10:05 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-12-19 11:10:05 +0900 |
commit | c472c807c67778c8d0acec64438ca7745962c4a0 (patch) | |
tree | 76de8270766aa3b2cbce2fee40ec8991e14a69d4 /activerecord | |
parent | b2672c739b9fe3a5b37249d899bdec9c3b9726cf (diff) | |
download | rails-c472c807c67778c8d0acec64438ca7745962c4a0.tar.gz rails-c472c807c67778c8d0acec64438ca7745962c4a0.tar.bz2 rails-c472c807c67778c8d0acec64438ca7745962c4a0.zip |
Remove useless `test_supports_primary_key`
`supports_primary_key?` method is defined in `AbstractAdapter` so does
not raise any errors.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/primary_keys_test.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/activerecord/test/cases/primary_keys_test.rb b/activerecord/test/cases/primary_keys_test.rb index b434f4a6b6..1d72899102 100644 --- a/activerecord/test/cases/primary_keys_test.rb +++ b/activerecord/test/cases/primary_keys_test.rb @@ -129,12 +129,6 @@ class PrimaryKeysTest < ActiveRecord::TestCase assert_nothing_raised { MixedCaseMonkey.find(1).destroy } end - def test_supports_primary_key - assert_nothing_raised do - ActiveRecord::Base.connection.supports_primary_key? - end - end - if ActiveRecord::Base.connection.supports_primary_key? def test_primary_key_returns_value_if_it_exists klass = Class.new(ActiveRecord::Base) do |