Permalink
Browse files

Merge pull request #27993 from koic/fix_test_ar_value_too_long_using_…

…oracle

Fix a tests of AR::ValueTooLong when using OracleAdapter
  • Loading branch information...
eileencodes committed Feb 15, 2017
2 parents b3110f4 + 0f50538 commit 6a61ca3ecd0f31fde5348909e7b6fdecd783c9a1
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/test/cases/validations/uniqueness_validation_test.rb
@@ -372,7 +372,7 @@ def test_validate_uniqueness_with_limit
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 @@ def test_validate_uniqueness_with_limit_and_utf8
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

0 comments on commit 6a61ca3

Please sign in to comment.