diff options
author | Koichi ITO <koic.ito@gmail.com> | 2017-02-16 17:34:24 +0900 |
---|---|---|
committer | Koichi ITO <koic.ito@gmail.com> | 2017-02-17 19:43:48 +0900 |
commit | d62a79fae4f024872942057fcc0093ae95ec5e49 (patch) | |
tree | 9fad9054757e8816aadf330550cf9616686c5a0a /activerecord/test | |
parent | 6dccceef9c888e7e8a2cdcd46cd896eff75d64d9 (diff) | |
download | rails-d62a79fae4f024872942057fcc0093ae95ec5e49.tar.gz rails-d62a79fae4f024872942057fcc0093ae95ec5e49.tar.bz2 rails-d62a79fae4f024872942057fcc0093ae95ec5e49.zip |
Raise NotImplementedError when using empty_insert_statement_value with Oracle
Refer: https://github.com/rsim/oracle-enhanced/pull/1180
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/dup_test.rb | 2 | ||||
-rw-r--r-- | activerecord/test/cases/primary_keys_test.rb | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/cases/dup_test.rb b/activerecord/test/cases/dup_test.rb index 3821e0c949..000ed27efb 100644 --- a/activerecord/test/cases/dup_test.rb +++ b/activerecord/test/cases/dup_test.rb @@ -143,6 +143,8 @@ module ActiveRecord end def test_dup_without_primary_key + skip if current_adapter?(:OracleAdapter) + klass = Class.new(ActiveRecord::Base) do self.table_name = "parrots_pirates" end diff --git a/activerecord/test/cases/primary_keys_test.rb b/activerecord/test/cases/primary_keys_test.rb index 98b9c91489..c423b1d1c5 100644 --- a/activerecord/test/cases/primary_keys_test.rb +++ b/activerecord/test/cases/primary_keys_test.rb @@ -183,6 +183,8 @@ class PrimaryKeysTest < ActiveRecord::TestCase end def test_create_without_primary_key_no_extra_query + skip if current_adapter?(:OracleAdapter) + klass = Class.new(ActiveRecord::Base) do self.table_name = "dashboards" end |