diff options
author | Koichi ITO <koic.ito@gmail.com> | 2017-02-14 11:35:22 +0900 |
---|---|---|
committer | Koichi ITO <koic.ito@gmail.com> | 2017-02-14 11:38:57 +0900 |
commit | 0f50538ab4b71172a36f1ca3f9ec71d16440dda6 (patch) | |
tree | d145afc43e686d2fa6eef93483dd8cfff0f4e839 /activerecord | |
parent | efe121eab01d70c9da5747597d8ac6f526f2da4e (diff) | |
download | rails-0f50538ab4b71172a36f1ca3f9ec71d16440dda6.tar.gz rails-0f50538ab4b71172a36f1ca3f9ec71d16440dda6.tar.bz2 rails-0f50538ab4b71172a36f1ca3f9ec71d16440dda6.zip |
Fix a tests of AR::ValueTooLong when using OracleAdapter
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/validations/uniqueness_validation_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/validations/uniqueness_validation_test.rb b/activerecord/test/cases/validations/uniqueness_validation_test.rb index 6d22638592..277280b42e 100644 --- a/activerecord/test/cases/validations/uniqueness_validation_test.rb +++ b/activerecord/test/cases/validations/uniqueness_validation_test.rb @@ -372,7 +372,7 @@ class UniquenessValidationTest < ActiveRecord::TestCase e2 = Event.create(title: "abcdefgh") assert_not e2.valid?, "Created an event whose title is not unique" - elsif current_adapter?(:Mysql2Adapter, :PostgreSQLAdapter, :SQLServerAdapter) + elsif current_adapter?(:Mysql2Adapter, :PostgreSQLAdapter, :OracleAdapter, :SQLServerAdapter) assert_raise(ActiveRecord::ValueTooLong) do Event.create(title: "abcdefgh") end @@ -391,7 +391,7 @@ class UniquenessValidationTest < ActiveRecord::TestCase e2 = Event.create(title: "一二三四五六七八") assert_not e2.valid?, "Created an event whose title is not unique" - elsif current_adapter?(:Mysql2Adapter, :PostgreSQLAdapter, :SQLServerAdapter) + elsif current_adapter?(:Mysql2Adapter, :PostgreSQLAdapter, :OracleAdapter, :SQLServerAdapter) assert_raise(ActiveRecord::ValueTooLong) do Event.create(title: "一二三四五六七八") end |