diff options
author | Eileen M. Uchitelle <eileencodes@users.noreply.github.com> | 2017-02-15 12:38:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-15 12:38:35 -0500 |
commit | 6a61ca3ecd0f31fde5348909e7b6fdecd783c9a1 (patch) | |
tree | 4d5dcb6f389d73f4c64eac1e2eb3872591d41cd0 /activerecord/test/cases | |
parent | b3110f4f9526d546678f469de00612f8e590d4b2 (diff) | |
parent | 0f50538ab4b71172a36f1ca3f9ec71d16440dda6 (diff) | |
download | rails-6a61ca3ecd0f31fde5348909e7b6fdecd783c9a1.tar.gz rails-6a61ca3ecd0f31fde5348909e7b6fdecd783c9a1.tar.bz2 rails-6a61ca3ecd0f31fde5348909e7b6fdecd783c9a1.zip |
Merge pull request #27993 from koic/fix_test_ar_value_too_long_using_oracle
Fix a tests of AR::ValueTooLong when using OracleAdapter
Diffstat (limited to 'activerecord/test/cases')
-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 |